diff --git a/textfilter/vibe/textfilter/markdown.d b/textfilter/vibe/textfilter/markdown.d index aa3dbf6a81..7e4f3382d4 100644 --- a/textfilter/vibe/textfilter/markdown.d +++ b/textfilter/vibe/textfilter/markdown.d @@ -788,7 +788,7 @@ private void writeMarkdownEscaped(R)(ref R dst, string ln, in LinkRef[string] li string text; if (auto em = parseEmphasis(ln, text)) { dst.put(em == 1 ? "" : em == 2 ? "" : ""); - filterHTMLEscape(dst, text, HTMLEscapeFlags.escapeMinimal); + dst.put(text); dst.put(em == 1 ? "" : em == 2 ? "": ""); } else { dst.put(ln[0]); @@ -1685,3 +1685,9 @@ private struct Link { assert (filterMarkdown("- foo\n- %%%", MarkdownFlags.figures) == "
\n
\n"); + assert(filterMarkdown("* *") == "\n
\n"); + assert(filterMarkdown("` `") == "
\n