Skip to content

Commit 2518f7b

Browse files
authored
Fix code-block line numbering (#1618)
1 parent 0696d6e commit 2518f7b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.vuepress/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ export default defineUserConfig({
172172
sidebar: sidebarZhCN,
173173
},
174174
},
175+
themePlugins: {
176+
prismjs: {
177+
lineNumbers: 10,
178+
},
179+
},
175180
}),
176181
plugins: [
177182
gitPlugin(),
@@ -186,7 +191,7 @@ export default defineUserConfig({
186191
}),
187192
shikiPlugin({
188193
theme: 'dark-plus',
189-
lineNumbers: true,
194+
lineNumbers: 10,
190195
langs: [
191196
'nushell',
192197
'rust',

0 commit comments

Comments
 (0)