From c787268118db09d797e89d5a5500e46841cb24c2 Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Wed, 22 May 2024 12:36:48 +0800 Subject: [PATCH] chore: tweaks --- packages/markdown/src/markdown.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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
 }