开启行号
可以通过以下配置为每个代码块启用行号:
typescript
export default defineConfig({
themeConfig,
markdown: {
lineNumbers: true
}
})1
2
3
4
5
6
2
3
4
5
6
注意
是在配置文件中,config.ts 中,不是在主题配置文件中。
< ~/ > MyNote