Socket
Socket
Sign inDemoInstall

belmark

Package Overview
Dependencies
10
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    belmark

creates dom nodes from markdown


Version published
Weekly downloads
7
decreased by-46.15%
Maintainers
1
Install size
271 kB
Created
Weekly downloads
 

Readme

Source

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

inspiration came from

Keywords

FAQs

Last updated on 02 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc