bel

belmark

creates dom nodes from markdown

Showing:

Popularity

Downloads/wk

2

GitHub Stars

1

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

9.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

belmark

creates dom nodes from markdown

usage

npm install belmark

var belmark = require('belmark')
var markdown = `
  # Hello
  * world
`
var opts = { gfm: false }
/****************************
  as function call
****************************/
var el   = belmark.call(opts, markdown)
// or with default `opts`
var el   = belmark(markdown)
document.body.appendChild(el)
/****************************
  as tagged template
****************************/
var el2 = belmark.bind(opts)`
  # Hello
  * world
`
// or with default `opts`
var el2 = belmark`
  # Hello
  * world
`
document.body.appendChild(el2)

for more details see: demo

api

var element = belmark.call(opts, source)

  • source - Markdown source String
  • opts - options object for marked provided as this param
    • check marked for available options

related

inspiration came from

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100