Showdown Footnotes – 2.1.2
Simply footnotes for Showdown.
Install
I'd advice using this extension with something like browserify.
npm i --save showdown-footnotes
const converter = extensions: footnotes ;
Usage
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]. [1]: The explanation.
Single Line Comments
Single line footnotes can be written over multiple lines like this:
[^1]: A single linefootnote
Multi Line Footnotes
Shownotes-footnotes also supports multiline footnotes. You'll just need to indent the lines following the superscript.
[^5]: This is a paragraph. _That_ is another paragraph which is still within the same footnote.
Multiline footnotes are wrapped in a <div>
instead of a <small>
.
[5]: This is a paragraph. That is another paragraph which is still within the same footnote.