Skip to content

Superscript transformer plugin for Remark to transform ^text^ into a <sup>text</sup> element.

License

Notifications You must be signed in to change notification settings

Benbinbin/remark-super

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Superscript transformer plugin for Remark to transform ^text^ into a <sup>text</sup> element.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published