Skip to content

Commit

Permalink
fix(parser): de-prioritise code highlighter plugin (#3009)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Jan 20, 2025
1 parent 3807fe9 commit dc7d866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ export async function createParser(collection: ResolvedCollection, nuxt?: Nuxt)
...mdcOptions,
...markdown,
rehypePlugins: {
highlight: rehypeHighlightPlugin,
...mdcOptions?.rehypePlugins,
...markdown?.rehypePlugins,
// keep highlight plugin last to avoid conflict with other code plugins like `rehype-katex`
highlight: rehypeHighlightPlugin,
},
remarkPlugins: {
'remark-emoji': {},
Expand Down

0 comments on commit dc7d866

Please sign in to comment.