Licence
MIT
Version
0.2.0
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Markthat
A module that parses markdown into html
Installation:
npm install markthat
Usage:
Single line:
const markthat = require('markthat');
markthat.markthat('**Bold**');
//returns as: <strong>Bold</strong>
Whole file:
const markthat = require('markthat');
markthat.markthatFile('./README.md').then(thefile => {
console.log(thefile); //thefile is the parsed markdown
//do whatever you want with the parsed markdown
});