htmldown

0.0.22 • Public • Published

htmldown Build Status

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

License

MIT ©

Readme

Keywords

Package Sidebar

Install

npm i htmldown

Weekly Downloads

1

Version

0.0.22

License

MIT

Last publish

Collaborators

  • kchan