htmldown
My spectacular module
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install htmldown 
SYNC missed versions from official npm registry.

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 ©

Current Tags

  • 0.0.22                                ...           latest (5 years ago)

5 Versions

  • 0.0.22                                ...           5 years ago
  • 0.0.21                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |