I'm trying to use the markdown-it-footnote plugin as described in the docs here:
https://vuepress.vuejs.org/guide/markdown.html#advanced-configuration
I have saved markdown-it-footnote to devDependencies and installed it, and have the following in my config.js module.exports
markdown: {
config: md => {
md.use(require('markdown-it-footnote'))
}
I'm using the default theme with no custom layouts. What am I missing?
Edit: Nevermind. I looked at it this morning, and everything seems to be fine. I think I must have been looking at the wrong file.
Hi, thanks for your interest but please follow issue reporting guidelines, Github issues are for bug reports and feature requests only. You can ask questions on the聽forum, the聽Discord server, or StackOverflow. If it turns out to be a bug, come back and open an issue with a proper reproduction repo聽馃檪
cannot use one of markdown plugin named markdown-it-footnote in Vuepress 1.0.2 (Latest)
"dependencies": {
"vuepress": "^1.0.2",
},
"devDependencies": {
"markdown-it-footnote": "^3.0.2",
}
markdown: {
lineNumbers: true,
config: md => {
md.use(require('markdown-it-footnote'))
}
},
Here is a footnote reference,[^1] and another.[^longnote]
[^1]: Here is the footnote.
[^longnote]: Here's one with multiple blocks.
Footnote 1 link [^first].
Footnote 2 link[^second].
Footnote token will replaced and in the lower part of page, there will be footnote references.

Footnote token still visible and was not rendered by markdown-it-footnote

I changed vuepress version to 0.14.2 inspired by this repo and it worked like this

npx vuepress info in my VuePress project:So for everyone who comes here from google, like me:
The next google-result seems to be the solution (https://forum.vuejs.org/t/trying-to-get-markdown-it-footnote-to-work/69527)
instead of:
markdown: {
config: md => {
md.use(require("markdown-it-footnote"));
}
}
this works for me:
markdown: {
extendMarkdown: md => {
md.use(require("markdown-it-footnote"));
}
}
And why? Simply because the first config is for vuepress version 0 (before alpha) and the below config is for the current alpha version beginning with version 1.
So for everyone who comes here from google, like me:
The next google-result seems to be the solution (https://forum.vuejs.org/t/trying-to-get-markdown-it-footnote-to-work/69527)
instead of:
markdown: { config: md => { md.use(require("markdown-it-footnote")); } }this works for me:
markdown: { extendMarkdown: md => { md.use(require("markdown-it-footnote")); } }And why? Simply because the first config is for vuepress version 0 (before alpha) and the below config is for the current alpha version beginning with version 1.
is this possible config via yaml?
or how about VuePress support this by default ? like markdown-it-emoji?
For new user of Vuepress:
yarn add markdown-it-footnote.vuepress/config.js:markdown: {
extendMarkdown: md => {
md.use(require("markdown-it-footnote"));
}
}
Most helpful comment
So for everyone who comes here from google, like me:
The next google-result seems to be the solution (https://forum.vuejs.org/t/trying-to-get-markdown-it-footnote-to-work/69527)
instead of:
this works for me:
And why? Simply because the first config is for vuepress version 0 (before alpha) and the below config is for the current alpha version beginning with version 1.