mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-09 11:04:31 +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',
|
||||
|
||||
Reference in New Issue
Block a user