Skip to content

Commit

Permalink
fix: let vue compiler handle entity decoding
Browse files Browse the repository at this point in the history
yyx990803 committed Apr 18, 2024
1 parent 469ff38 commit f86ac56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node/markdown/markdown.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit f86ac56

Please sign in to comment.