markthat
v0.2.0
Published
A module that parses markdown into HTML
Downloads
4
Maintainers
Readme
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
});