still in alpha,not recommended for use in production environments
yarn add gmd-markdown-parser --save
if you prefer npm
npm install gmd-markdown-parser --save
import GMD from 'gmd-markdown-parser';
const md = new GMD;
const html = md.parse('# H1 Title'); // <h1>H1 Title</h1>
- H1-H6
- separation
- em
- strong
- strikethrough
- ul/ol
- link
- image
- blockquote
- code
- pre
- code in pre tag still be parsed
- diff