New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

showdown-footnotes

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

showdown-footnotes

A simple footnotes implementation for Showdown.

latest
Source
npmnpm
Version
2.1.2
Version published
Maintainers
1
Created
Source

Showdown Footnotes – 2.1.2

CI build status

Simply footnotes for Showdown.

Install

I'd advice using this extension with something like browserify.

npm i --save showdown-footnotes
const converter = new showdown.Converter({ extensions: [footnotes] });

Usage

Some word or something that needs explaining[^1].

[^1]: The explanation.

That would look compile to this.

<p>Some word or something that needs explaining<a href="#footnote-1"><sup>[1]</sup></a>.</p>

<p><small class="footnote" id="footnote-1"><a href="#footnote-1"><sup>[1]</sup></a>: The explanation.</small></p>

Single Line Comments

Single line footnotes can be written over multiple lines like this:

[^1]: A single line
footnote

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>.

<div class="footnote" id="footnote-5">
  <a href="#footnote-5"><sup>[5]</sup></a>:
  <p>This is a paragraph.</p>
  <p><em>That</em> is another paragraph which is still within the same footnote.</p>
</div>

FAQs

Package last updated on 28 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts