A markdown parser and compiler. Built for speed.
npm install md   

> This is a fork of marked
Why?
- Actively maintained
- Rewrote in ES6 and bundled with Rollup for smaller size (15KB)
- Support more GFM extras like task lists
``bash`
yarn add md
You can find a CDN version at https://unpkg.com/md/
`js
const md = require('md')
const html = md(## hello world
A modern markdown parser!
- [ ] todo
- [x] done)`
You can preview the HTML result here: https://egoist.moe/md2html/ (source)
#### src
Type: stringtrue
Required:
Input markdown string.
#### options
All marked options plus:
##### taskLists
Type: booleantrue
Default:
Enable GFM task lists, this will only work if options.gfm is true.
##### linksInNewTab
Type: boolean | (href: string) => booleanundefined
Default:
Open links in a new window/tab.
##### dataLine
Type: booleantrue
Default:
Add data-line attribute to
tag for code fences, it's useful with the line-highlight plugin in PrismJS.``markdown`js{1}`
console.log('hi')```This will yield:
html`console.log('hi')git checkout -b my-new-featureContributing
1. Fork it!
2. Create your feature branch:git commit -am 'Add some feature'
3. Commit your changes:git push origin my-new-feature
4. Push to the branch:`
5. Submit a pull request :D
Development
bash``lint and unit test
yarn testlint only
yarn lintfix lint issues
yarn lint -- --fixAuthor
md © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).> egoist.moe · GitHub @egoist · Twitter @_egoistlily