|
|
|
@ -206,6 +206,11 @@ export const createMarkdownRenderer = async (
|
|
|
|
|
|
|
|
|
|
md.linkify.set({ fuzzyLink: false })
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
|
|
if (options.preConfig) {
|
|
|
|
|
options.preConfig(md)
|
|
|
|
|
}
|
|
|
|
@ -292,10 +297,5 @@ 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
|
|
|
|
|
}
|
|
|
|
|