diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 14:42:36 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-09 14:42:36 -0800 |
commit | 765eedf8944757426ec53ae6edf829f3ca0d003a (patch) | |
tree | d24b64c20a1e392b02063d5da250c106f5435ef5 /js | |
parent | 3c68dcac2d30616904840c52d359653ba1f746b4 (diff) |
Simplified reMain for more performance gains.
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/inlines.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/lib/inlines.js b/js/lib/inlines.js index ff3ffde..553be53 100644 --- a/js/lib/inlines.js +++ b/js/lib/inlines.js @@ -71,7 +71,7 @@ var reEntity = new RegExp(ENTITY, 'gi'); // Matches a character with a special meaning in markdown, // or a string of non-special characters. Note: we match // clumps of _ or * or `, because they need to be handled in groups. -var reMain = /^(?:[_*`\n]+|[\[\]\\!<&*_]|[^\n`\[\]\\!<&*_]+)/m; +var reMain = /^[^\n`\[\]\\!<&*_]+/m; // Replace entities and backslash escapes with literal characters. var unescapeString = function(s) { @@ -760,7 +760,6 @@ var parseInline = function(block) { var res; switch(c) { case C_NEWLINE: - case C_SPACE: res = this.parseNewline(block); break; case C_BACKSLASH: |