fix: let vue compiler handle entity decoding

pull/3807/head
Evan You 8 months ago
parent 469ff3841e
commit f86ac56b78

@ -292,5 +292,10 @@ export const createMarkdownRenderer = async (
options.config(md)
}
// disable entity decode/escape from markdown-it, as the Vue compiler already
// decodes them.
md.disable('entity')
md.renderer.rules.text = (tokens, idx) => tokens[idx].content
return md
}

Loading…
Cancel
Save