🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

markdown-it-sup-alt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-sup-alt

<sup> tag for markdown-it markdown parser.

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
130
-35%
Maintainers
1
Weekly downloads
 
Created
Source

markdown-it-sup-alt

Build Status NPM version Coverage Status

Superscript (<sup>) tag plugin for markdown-it markdown parser.

v1.+ requires markdown-it v4.+, see changelog.

29^th^ => 29<sup>th</sup>

Markup is based on pandoc definition. But nested markup is currently not supported.

Forked from upstream to allow unescaped whitespace within delimiters (still must be in the same line). If using this plugin, it's recommended that you also use a math plugin so that text like 2^4 + 3^5 is handled properly.

Install

node.js, browser:

npm install markdown-it-sup-alt --save
bower install markdown-it-sup-alt --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-sup-alt'));

md.render('29^th^') // => '<p>29<sup>th</sup></p>'

Differences in browser. If you load script directly into the page, without package system, module will add itself globally as window.markdownitSup.

License

MIT

Keywords

markdown-it-plugin

FAQs

Package last updated on 08 Jun 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