markdown-it-custom-header-link
is a VuePress plugin which created custom header links.
npm install markdown-it-custom-header-link
# OR
yarn add markdown-it-custom-header-link
module.exports = {
markdown: {
plugins: [
[require('markdown-it-custom-header-link')]
]
}
}
Add a header to the markdown file page.md
## my header <!-- link -->
This header is available at the url: localhost:8080/page/#link
Vuepress [[toc]]
will give incorrect links. Problem in vuepress plugin markdown-it-table-of-contents