An open API service indexing awesome lists of open source software.

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.

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)