Skip to content

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

License

Notifications You must be signed in to change notification settings

peaceroad/markdown-it-footnote-here

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%