File tree 4 files changed +269
-260
lines changed
src/node/markdown/plugins
4 files changed +269
-260
lines changed Original file line number Diff line number Diff line change 15
15
"open-cli" : " ^8.0.0" ,
16
16
"postcss-rtlcss" : " ^5.6.0" ,
17
17
"vitepress" : " workspace:*" ,
18
- "vitepress-plugin-group-icons" : " ^1.3.4 "
18
+ "vitepress-plugin-group-icons" : " ^1.3.5 "
19
19
}
20
20
}
Original file line number Diff line number Diff line change 98
98
"@docsearch/css" : " ^3.8.2" ,
99
99
"@docsearch/js" : " ^3.8.2" ,
100
100
"@iconify-json/simple-icons" : " ^1.2.20" ,
101
- "@shikijs/core" : " ^1.27.2 " ,
102
- "@shikijs/transformers" : " ^1.27.2 " ,
103
- "@shikijs/types" : " ^1.27.2 " ,
101
+ "@shikijs/core" : " ^2.0.0 " ,
102
+ "@shikijs/transformers" : " ^2.0.0 " ,
103
+ "@shikijs/types" : " ^2.0.0 " ,
104
104
"@types/markdown-it" : " ^14.1.2" ,
105
105
"@vitejs/plugin-vue" : " ^5.2.1" ,
106
106
"@vue/devtools-api" : " ^7.7.0" ,
110
110
"focus-trap" : " ^7.6.4" ,
111
111
"mark.js" : " 8.11.1" ,
112
112
"minisearch" : " ^7.1.1" ,
113
- "shiki" : " ^1.27.2 " ,
114
- "vite" : " ^5.4.11 " ,
113
+ "shiki" : " ^2.0.0 " ,
114
+ "vite" : " ^5.4.12 " ,
115
115
"vue" : " ^3.5.13"
116
116
},
117
117
"devDependencies" : {
152
152
"fs-extra" : " ^11.3.0" ,
153
153
"get-port" : " ^7.1.0" ,
154
154
"gray-matter" : " ^4.0.3" ,
155
- "lint-staged" : " ^15.4.0 " ,
155
+ "lint-staged" : " ^15.4.1 " ,
156
156
"lodash.template" : " ^4.5.0" ,
157
157
"lru-cache" : " ^11.0.2" ,
158
158
"markdown-it" : " ^14.1.0" ,
176
176
"prompts" : " ^2.4.2" ,
177
177
"punycode" : " ^2.3.1" ,
178
178
"rimraf" : " ^6.0.1" ,
179
- "rollup" : " ^4.30.1 " ,
179
+ "rollup" : " ^4.31.0 " ,
180
180
"rollup-plugin-dts" : " ^6.1.1" ,
181
181
"rollup-plugin-esbuild" : " ^6.1.1" ,
182
182
"semver" : " ^7.6.3" ,
186
186
"synckit" : " ^0.9.2" ,
187
187
"tinyglobby" : " ^0.2.10" ,
188
188
"typescript" : " ^5.7.3" ,
189
- "vitest" : " ^3.0.0 " ,
189
+ "vitest" : " ^3.0.2 " ,
190
190
"vue-tsc" : " ^2.2.0" ,
191
191
"wait-on" : " ^8.0.2"
192
192
},
Original file line number Diff line number Diff line change @@ -100,14 +100,22 @@ export async function highlight(
100
100
101
101
await options ?. shikiSetup ?.( highlighter )
102
102
103
+ // TODO: remove explicit matchAlgorithm in shiki v3
103
104
const transformers : ShikiTransformer [ ] = [
104
- transformerNotationDiff ( ) ,
105
+ transformerNotationDiff ( {
106
+ matchAlgorithm : 'v3'
107
+ } ) ,
105
108
transformerNotationFocus ( {
109
+ matchAlgorithm : 'v3' ,
106
110
classActiveLine : 'has-focus' ,
107
111
classActivePre : 'has-focused-lines'
108
112
} ) ,
109
- transformerNotationHighlight ( ) ,
110
- transformerNotationErrorLevel ( ) ,
113
+ transformerNotationHighlight ( {
114
+ matchAlgorithm : 'v3'
115
+ } ) ,
116
+ transformerNotationErrorLevel ( {
117
+ matchAlgorithm : 'v3'
118
+ } ) ,
111
119
{
112
120
name : 'vitepress:add-class' ,
113
121
pre ( node ) {
You can’t perform that action at this time.
0 commit comments