Superscript and Subscript for Marked.js
npm install marked-subsuper-textAdds superscript and subscript notation to marked.js. Derived from Homebrewery.
Superscript is created by wrapping the text in a single caret (^). The wrapped text must not have leading or trailing spaces.
```
This is ^superscript^.
Subscript is performed by wrapping the text in double carets (^^). The wrapped text must not have leading or trailing spaces.
``
This is ^^subscript^^.
`js
const marked = require("marked");
const markedSubSuper = require("marked-subsuper-text");
marked.use(markedSubSuper());
const html = marked.parse("This is ^^sub^^ and this is ^super^.");
console.log(html);
//
This is sub and this is super.