Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Oct 20, 2014
1 parent 57947d0 commit 93be22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/js/markdown-extra-extended.js
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,7 @@ MarkdownExtra_Parser.prototype._hashHTMLBlocks_inMarkdown = function(text, inden
tag_re = this._php_preg_quote(tag);
if (
text.substr(1).indexOf('`') != -1 && // [portiong note] To avoid JS's RegExp infinity loop.
(matches = text.match(new RegExp('^(.+?|\\n[^\\n])*?[^`]' + tag_re + '[^`]')))
(matches = text.match(new RegExp('^(.+?|\\n[?!\\n])*?[^`]' + tag_re + '[?!`]')))
) {
// End marker found: pass text unchanged until marker.
parsed += tag + matches[0];
Expand Down

0 comments on commit 93be22e

Please sign in to comment.