mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-08 18:44:32 +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: {
|
code: {
|
||||||
lineNumbers: false
|
lineNumbers: false
|
||||||
},
|
},
|
||||||
linkify: true
|
linkify: true,
|
||||||
|
},
|
||||||
|
extendsMarkdown(md) {
|
||||||
|
md.use(require('markdown-it-attrs')); // to use custom headers anchors
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
'@vuepress/plugin-search',
|
'@vuepress/plugin-search',
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/plugin-search": "^2.0.0-beta.38",
|
"@vuepress/plugin-search": "^2.0.0-beta.38",
|
||||||
"glob": "^7.2.0",
|
"glob": "^7.2.0",
|
||||||
|
"markdown-it-attrs": "^4.1.3",
|
||||||
"vuepress": "^2.0.0-beta.38",
|
"vuepress": "^2.0.0-beta.38",
|
||||||
"vuepress-plugin-copy-code2": "^2.0.0-beta.36"
|
"vuepress-plugin-copy-code2": "^2.0.0-beta.36"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user