Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Subscript (<sub>) tag plugin for markdown-it markdown parser

License

NotificationsYou must be signed in to change notification settings

markdown-it/markdown-it-sub

Repository files navigation

CINPM versionCoverage Status

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.

Install

node.js, browser:

npm install markdown-it-sub --savebower install markdown-it-sub --save

Use

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.

License

MIT

About

Subscript (<sub>) tag plugin for markdown-it markdown parser

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp