A simple footnotes implementation for Showdown.
npm install showdown-footnotesSimply footnotes for Showdown.
I'd advice using this extension with something like browserify.
``bash`
npm i --save showdown-footnotes
`js`
const converter = new showdown.Converter({ extensions: [footnotes] });
`md
Some word or something that needs explaining[^1].
[^1]: The explanation.
`
That would look compile to this.
` Some word or something that needs explaining[1].html
[1]: The explanation.
$3
Single line footnotes can be written over multiple lines like this:
`md
[^1]: A single line
footnote
`$3
Shownotes-footnotes also supports multiline footnotes. You'll just need to indent the lines following the superscript.
`md
[^5]:
This is a paragraph. _That_ is another paragraph which is still within the same footnote.
`Multiline footnotes are wrapped in a
instead of a .`html
``