mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
Add markdown-it-attrs plugin for custom headers anchors
Syntax: # Header {#header-id}
This commit is contained in:
@@ -48,7 +48,10 @@ module.exports = {
|
||||
code: {
|
||||
lineNumbers: false
|
||||
},
|
||||
linkify: true
|
||||
linkify: true,
|
||||
},
|
||||
extendsMarkdown(md) {
|
||||
md.use(require('markdown-it-attrs')); // to use custom headers anchors
|
||||
},
|
||||
plugins: [
|
||||
'@vuepress/plugin-search',
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"devDependencies": {
|
||||
"@vuepress/plugin-search": "^2.0.0-beta.38",
|
||||
"glob": "^7.2.0",
|
||||
"markdown-it-attrs": "^4.1.3",
|
||||
"vuepress": "^2.0.0-beta.38",
|
||||
"vuepress-plugin-copy-code2": "^2.0.0-beta.36"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user