remark-super
v1.0.2
Published
Superscript transformer plugin for Remark to transform ^text^ into a <sup>text</sup> element.
Downloads
197
Maintainers
Readme
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>
});