remark-super

1.0.2 • Public • Published

remark-super

This is a remark plugin to transform ^text^ into a <sup>text</sup> element.

Install

npm install remark-super

Usage

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 <sup>superscript</sup>
});

License

MIT

Package Sidebar

Install

npm i remark-super

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

2.88 kB

Total Files

4

Last publish

Collaborators

  • benbinbin