Customizable Markdown Parser
-
I share Markpiece with npm, it can be easily installed in a node environment.
npm i markpiece
or
yarn add markpiece
-
Finish 🎉
-
Import
MpParser
frommarkpiece
and instantiate it.import { MpParser } from 'markpiece' let parser = new MpParser()
-
Markpiece translates from Markdown (
string
) to HTML byrender
method.let html = parser.render('# Hello Markpiece :cheese:')
-
Done 🎉
Click below for detailed instructions (e.g. customization).