https://github.com/benbinbin/remark-super
Superscript transformer plugin for Remark to transform ^text^ into a <sup>text</sup> element.
https://github.com/benbinbin/remark-super
Last synced: 10 months ago
JSON representation
Superscript transformer plugin for Remark to transform ^text^ into a <sup>text</sup> element.
- Host: GitHub
- URL: https://github.com/benbinbin/remark-super
- Owner: Benbinbin
- License: mit
- Created: 2022-08-27T03:43:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-21T09:08:44.000Z (over 3 years ago)
- Last Synced: 2025-02-13T05:12:43.787Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remark-super
This is a remark plugin to transform `^text^` into a `text` element.
## Install
```bash
npm install remark-super
```
## Usage
```js
import {remark} from 'remark';
import remarkSuper from 'remark-super';
const doc = 'This is a ^superscript^';
remark().use(remarkSuper).process(doc).then(file => {
console.log(String(file));
// => This is a superscript
});
```
## License
[MIT](./LICENSE)