Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed May 22, 2024
1 parent 7a94405 commit c787268
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/markdown/src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ export const createMarkdown = ({
)
}

// add v-pre to `<pre>` and `<code>`
if (vPre !== false) {
md.use<VPrePluginOptions>(vPrePlugin, vPre)
}

// treat unknown html tags as components
if (component !== false) {
md.use(componentPlugin)
Expand Down Expand Up @@ -155,5 +150,10 @@ export const createMarkdown = ({
md.use(titlePlugin)
}

// add v-pre to `<pre>` and `<code>`
if (vPre !== false) {
md.use<VPrePluginOptions>(vPrePlugin, vPre)
}

return md
}

0 comments on commit c787268

Please sign in to comment.