bugdown: Remove whitespace strip from inline code.

Fixes #4507
This commit is contained in:
Andy Perez
2017-11-22 01:27:19 +00:00
committed by showell
parent 99e62f80b9
commit f0190333b8
3 changed files with 34 additions and 4 deletions

View File

@@ -445,7 +445,7 @@ var inline = {
nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
code: /^(`+)(\s*[\s\S]*?[^`]\s*)\1(?!`)/,
br: /^ {2,}\n(?!\s*$)/,
del: noop,
emoji: noop,