- Notifications
You must be signed in to change notification settings - Fork17
Subscript (<sub>) tag plugin for markdown-it markdown parser
License
NotificationsYou must be signed in to change notification settings
markdown-it/markdown-it-sub
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Subscript (
<sub>
) tag plugin formarkdown-it markdown parser.
v1.+ requiresmarkdown-it
v4.+, see changelog.
H~2~0
=>H<sub>2</sub>O
Markup is based onpandoc definition. But nested markup is currently not supported.
node.js, browser:
npm install markdown-it-sub --savebower install markdown-it-sub --save
varmd=require('markdown-it')().use(require('markdown-it-sub'));md.render('H~2~0')// => '<p>H<sub>2</sub>O</p>'
Differences in browser. If you load script directly into the page, withoutpackage system, module will add itself globally aswindow.markdownitSub
.
About
Subscript (<sub>) tag plugin for markdown-it markdown parser
Resources
License
Security policy
Stars
Watchers
Forks
Packages0
No packages published