From 1543a38cd7d97888ea7db2fa2df60c2b9470263d Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Mon, 15 Sep 2014 05:41:45 +0400 Subject: [PATCH] Updated text match rule --- lib/lexer_inline.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/lexer_inline.js b/lib/lexer_inline.js index f4dbb5f..29d5a1f 100644 --- a/lib/lexer_inline.js +++ b/lib/lexer_inline.js @@ -48,7 +48,9 @@ function LexerInline() { this.rules = []; // Rule to skip pure text - this.textMatch = /^[^\n\\`*_\[!<&>"]+/; + // - '{$%@' reserved for extentions + // - '<>"' added for internal html escaping + this.textMatch = /^[^\n\\`*_\[!&{$%@<>"]+/; for (var i = 0; i < rules.length; i++) { this.after(null, rules[i]);