Skip to content

Commit f86ac56

Browse files
committedApr 18, 2024·
fix: let vue compiler handle entity decoding
1 parent 469ff38 commit f86ac56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/node/markdown/markdown.ts

+5
Original file line numberDiff line numberDiff line change
@@ -292,5 +292,10 @@ export const createMarkdownRenderer = async (
292292
options.config(md)
293293
}
294294

295+
// disable entity decode/escape from markdown-it, as the Vue compiler already
296+
// decodes them.
297+
md.disable('entity')
298+
md.renderer.rules.text = (tokens, idx) => tokens[idx].content
299+
295300
return md
296301
}

0 commit comments

Comments
 (0)
Please sign in to comment.