https://github.com/bubkoo/hexo-filter-sup
Generate superscript (<sup>) tag for Hexo.
https://github.com/bubkoo/hexo-filter-sup
Last synced: over 1 year ago
JSON representation
Generate superscript (<sup>) tag for Hexo.
- Host: GitHub
- URL: https://github.com/bubkoo/hexo-filter-sup
- Owner: bubkoo
- License: mit
- Created: 2017-01-09T07:19:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T19:03:47.000Z (over 9 years ago)
- Last Synced: 2025-03-16T11:04:01.628Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-filter-sup
[](https://github.com/bubkoo/hexo-filter-sup/blob/master/LICENSE)
[](https://www.npmjs.com/packages/hexo-filter-sup)
[](http://packagequality.com/#?package=hexo-filter-sup)
> Generate superscript (``) tag for Hexo.
## Install
```node
npm install --save hexo-filter-sup
```
## Usage
`29^th^` => `29th`
The default markup is based on [pandoc](http://johnmacfarlane.net/pandoc/README.html#superscripts-and-subscripts) definition. But nested markup is currently not supported.
Markup can be specified as follow in you `_config.yml`:
```
sup:
markup: '$'
```
## Related
- [hexo-filter-sub](https://github.com/bubkoo/hexo-filter-sub) Generate subscript (``) tag for Hexo.
- [hexo-toc](https://github.com/bubkoo/hexo-toc) Insert a markdown TOC before posts be rendered.
- [hexo-filter-fenced-code](https://github.com/bubkoo/hexo-filter-fenced-code) Extend syntax for the native fenced code block.
- [hexo-filter-flowchart](https://github.com/bubkoo/hexo-filter-flowchart) Generate flowchart diagrams for Hexo.
- [hexo-filter-sequence](https://github.com/bubkoo/hexo-filter-sequence) Generate UML sequence diagrams for Hexo.
- [hexo-theme-formula](https://github.com/bubkoo/hexo-theme-formula) Hexo theme base on jade and less.
## Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please [create an issue](https://github.com/bubkoo/hexo-filter-sup/issues/new).