We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815712e commit 1ca5a57Copy full SHA for 1ca5a57
config/chainMarkdown.js
@@ -0,0 +1,9 @@
1
+function chainMarkdown (config) {
2
+ config
3
+ .plugin('anchor')
4
+ .tap(([options]) => [
5
+ Object.assign(options, { permalinkAttrs: () => ({ 'aria-label': 'Anchor' }) })
6
+ ])
7
+}
8
+
9
+module.exports = chainMarkdown
index.js
@@ -1,6 +1,8 @@
const plugins = require('./config/plugins')
+const chainMarkdown = require('./config/chainMarkdown')
module.exports = {
extend: '@vuepress/theme-default',
- plugins
+ plugins,
+ chainMarkdown
}
0 commit comments