Commit 18b2f60b authored by NGPixel's avatar NGPixel

fix: unescaped code in markdown preview panel

parent b18dd29f
......@@ -243,7 +243,7 @@ const md = new MarkdownIt({
linkify: true,
typography: true,
highlight(str, lang) {
return `<pre class="line-numbers"><code class="language-${lang}">${str}</code></pre>`
return `<pre class="line-numbers"><code class="language-${lang}">${_.escape(str)}</code></pre>`
}
})
.use(mdAttrs, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment