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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    24
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    24
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i remark-super

Weekly Downloads

24

Version

1.0.2

License

MIT

Unpacked Size

2.88 kB

Total Files

4

Last publish

Collaborators

  • benbinbin