0.0.22 • Published 8 years ago
htmldown v0.0.22
htmldown
Convert HTML to Markdown-format text
Install
$ npm install --save htmldown
Usage
const htmldown = require('htmldown')
htmldown('unicorns')
API
htmldown(input, options)
input
Type: string
HTML string
options
escapeTags
Type: Array
Add more tags to escape. eg: <span>foo</span>
=> foo
getLanguage
Type: Function
Define a function to tell it how to extract code block language from a className.
Development
# dev
tooling watch -e example
# build
tooling build -e example