diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/static/js/marked/lib/marked.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/static/js/marked/lib/marked.js b/web/static/js/marked/lib/marked.js index 4085649a5..7f2438069 100644 --- a/web/static/js/marked/lib/marked.js +++ b/web/static/js/marked/lib/marked.js @@ -226,8 +226,8 @@ var inline = { link: /^!?\[(inside)\]\(href\)/, reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, - strong: /^\*((?:\*\*|[\s\S])+?)\*/, - em: /^\b_((?:[^_]|__)+?)_\b/, + strong: /^(\*{1})\s*([^\r?\n|\r]*?[^\*])\s*\1(?!\*)/, + em: /^(_{1})\s*([^\r?\n|\r]*?[^_])\s*\1(?!_)/, code: /^(`{1})\s*([^\r?\n|\r]*?[^`])\s*\1(?!`)/, br: /^ {2,}\n(?!\s*$)/, del: noop, |