Skip to content

Subscript transformer plugin for Remark to transform _text_ into a <sub>text</sub> element.

License

Notifications You must be signed in to change notification settings

Benbinbin/remark-sub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

remark-sub

This is a remark plugin to transform _text_ into a <sub>text</sub> element.

Install

npm install remark-sub

Usage

import {remark} from 'remark';
import remarkSub from 'remark-sub';

const doc = 'This is a _subscript_';
remark().use(remarkSub).process(doc).then(file => {
    console.log(String(file));
    // => This is a <sub>subscript</sub>
});

License

MIT

About

Subscript transformer plugin for Remark to transform _text_ into a <sub>text</sub> element.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published