Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-footnote

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-footnote

Footnotes for markdown-it markdown parser.

  • 3.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
205K
decreased by-0.88%
Maintainers
1
Weekly downloads
 
Created

What is markdown-it-footnote?

The markdown-it-footnote package is a plugin for the markdown-it Markdown parser that adds support for footnotes. It allows users to easily add footnotes to their Markdown documents, which are rendered as superscript numbers that link to the corresponding footnote text at the bottom of the document.

What are markdown-it-footnote's main functionalities?

Basic Footnote

This feature allows you to add a basic footnote to your Markdown text. The footnote reference is indicated by [^1] and the footnote text is provided at the bottom of the document.

const md = require('markdown-it')().use(require('markdown-it-footnote'));
const result = md.render('Here is a footnote reference[^1].

[^1]: Here is the footnote.');
console.log(result);

Inline Footnote

This feature allows you to add an inline footnote directly within the text. The inline footnote is indicated by ^[text] and the footnote text is provided within the brackets.

const md = require('markdown-it')().use(require('markdown-it-footnote'));
const result = md.render('Here is an inline footnote^[Here is the inline footnote text].');
console.log(result);

Multiple Footnotes

This feature allows you to add multiple footnotes to your Markdown text. Each footnote reference is indicated by a unique identifier [^1], [^2], etc., and the corresponding footnote text is provided at the bottom of the document.

const md = require('markdown-it')().use(require('markdown-it-footnote'));
const result = md.render('Here is a footnote reference[^1] and another one[^2].

[^1]: First footnote.
[^2]: Second footnote.');
console.log(result);

Other packages similar to markdown-it-footnote

Keywords

FAQs

Package last updated on 20 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc