diff --git a/packages/markdown/src/markdown.ts b/packages/markdown/src/markdown.ts index 9467c595dd..88aeb05e83 100644 --- a/packages/markdown/src/markdown.ts +++ b/packages/markdown/src/markdown.ts @@ -90,11 +90,6 @@ export const createMarkdown = ({ ) } - // add v-pre to `
` and ``
- if (vPre !== false) {
- md.use(vPrePlugin, vPre)
- }
-
// treat unknown html tags as components
if (component !== false) {
md.use(componentPlugin)
@@ -155,5 +150,10 @@ export const createMarkdown = ({
md.use(titlePlugin)
}
+ // add v-pre to `` and ``
+ if (vPre !== false) {
+ md.use(vPrePlugin, vPre)
+ }
+
return md
}