0.1.0 • Published 3 years ago

@peaceroad/markdown-it-footnote-here v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

markdown-it-footnote-here

This is markdown-it plugin. And, this plugin is a further fork of markdown-it-footnote-here, which is a fork of the original markdown-it-footnote plugin.

This plugin inserts footnotes just below paragraphs.

The input Markdown and the output HTML are as follows.

Markdown:

A paragraph.[^1]

[^1]: A footnote.

A paragraph.

HTML:

<p>A paragraph.<a href="#fn1" id="fn-ref1" class="fn-noteref" role="doc-noteref">[1]</a></p>
<aside id="fn1" class="fn" role="doc-footnote">
<p><a href="#fn-ref1" class="fn-backlink" role="doc-backlink">[1]</a> A footnote.</p>
</aside>
<p>A paragraph.</p>

Use

const md = require('markdown-it')()
            .use(require('@peaceroad/markdown-it-footnote-here'));

md.render(/*...*/) // See examples above

Install

npm install @peaceroad/markdown-it-footnote-here

License

MIT