Skip to content

Commit

Permalink
fix: vueRE conflicting with lineNoRE (#4247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heptazhou authored Oct 3, 2024
1 parent 1628918 commit 2ac64b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/markdown/plugins/highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function highlight(
}
]

const vueRE = /-vue$/
const vueRE = /-vue(?=:|$)/
const lineNoStartRE = /=(\d*)/
const lineNoRE = /:(no-)?line-numbers(=\d*)?$/
const mustacheRE = /\{\{.*?\}\}/g
Expand Down

0 comments on commit 2ac64b8

Please sign in to comment.