How can I insert and display markdown footnotes with eleventy? #2343
-
Hi folks, I'm new to 11ty so please excuse if this question is very dumb. I'm trying to find a solution to having my markdown footnotes recognised as such by eleventy (I'm using nunjucks for my layouts), but by using the default standard markdown nomenclature this doesn't seem possible, and I'm having an issue with the eleventy-plugin-footnotes plugin. Following the instructions on the plugin's github page, I've installed it via
But, I'm getting this error
The footnote doesn't appear in the website page once loaded and I know I must be doing something very obvious very wrong, but I can't wrap my head around it nor find any solution on the internet. So this is basically me trying to vanquish my shame and letting you all know you're my last hope. Thanks a lot for reading and trying to help out a fellow eleventy user. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
@thisisgonnatakeawhile This worked for me (tested in LiquidJS and Nunjucks): https://github.com/pdehaan/11ty-2343 |
Beta Was this translation helpful? Give feedback.
-
I think the source files can be markdown, as long as your layout file is liquid. With that being said, if you use markdown and you (probably) use markdown-it for rendering it, you can just add
|
Beta Was this translation helpful? Give feedback.
-
I am new to Eleventy. How does one add footnotes functionality in version 3.0? I am trying to follow older instructions but there is no such file as Also, since footnotes are intrinsic part of Markdown formatting, it would maybe make sense to include this functionality in Eleventy engine by default. Imagine one would need separate (also third-party) plugins to display headlines or text in bold. |
Beta Was this translation helpful? Give feedback.
@thisisgonnatakeawhile This worked for me (tested in LiquidJS and Nunjucks): https://github.com/pdehaan/11ty-2343