https://github.com/markdown-it/markdown-it-sup
Superscript (<sup>) tag plugin for markdown-it markdown parser
https://github.com/markdown-it/markdown-it-sup
Last synced: 2 days ago
JSON representation
Superscript (<sup>) tag plugin for markdown-it markdown parser
- Host: GitHub
- URL: https://github.com/markdown-it/markdown-it-sup
- Owner: markdown-it
- License: mit
- Created: 2015-01-01T01:35:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T13:47:42.000Z (over 1 year ago)
- Last Synced: 2025-06-11T03:37:22.694Z (13 days ago)
- Language: JavaScript
- Homepage: https://markdown-it.github.io/
- Size: 14.6 KB
- Stars: 26
- Watchers: 5
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# markdown-it-sup
[](https://github.com/markdown-it/markdown-it-sup/actions/workflows/ci.yml)
[](https://www.npmjs.org/package/markdown-it-sup)
[](https://coveralls.io/r/markdown-it/markdown-it-sup?branch=master)> Superscript (``) tag plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.
__v1.+ requires `markdown-it` v4.+, see changelog.__
`29^th^` => `29th`
Markup is based on [pandoc](http://johnmacfarlane.net/pandoc/README.html#superscripts-and-subscripts) definition. But nested markup is currently not supported.
## Install
node.js, browser:
```bash
npm install markdown-it-sup --save
bower install markdown-it-sup --save
```## Use
```js
var md = require('markdown-it')()
.use(require('markdown-it-sup'));md.render('29^th^') // => '
29th
'
```_Differences in browser._ If you load script directly into the page, without
package system, module will add itself globally as `window.markdownitSup`.## License
[MIT](https://github.com/markdown-it/markdown-it-sup/blob/master/LICENSE)