Skip to content

Commit 2ac64b8

Browse files
authored
fix: vueRE conflicting with lineNoRE (#4247)
1 parent 1628918 commit 2ac64b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/markdown/plugins/highlight.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export async function highlight(
9090
}
9191
]
9292

93-
const vueRE = /-vue$/
93+
const vueRE = /-vue(?=:|$)/
9494
const lineNoStartRE = /=(\d*)/
9595
const lineNoRE = /:(no-)?line-numbers(=\d*)?$/
9696
const mustacheRE = /\{\{.*?\}\}/g

0 commit comments

Comments
 (0)