可以引入 line-number 插件来支持显示代码行号:
line-number
github:
vuepress:
import VueMarkdownEditor from '@kangc/v-md-editor'; import createLineNumbertPlugin from '@kangc/v-md-editor/lib/plugins/line-number/index'; VueMarkdownEditor.use(createLineNumbertPlugin());
← todo-list 高亮代码行 →