# htmldown
**Repository Path**: mirrors_egoist/htmldown
## Basic Information
- **Project Name**: htmldown
- **Description**: Convert HTML to Markdown-format text (better run in node environment)
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-24
- **Last Updated**: 2026-05-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# htmldown [](https://travis-ci.org/egoist/htmldown)
> Convert HTML to Markdown-format text
[Online demo](http://jsbin.com/mawuto/edit?js,output)
## Install
```
$ npm install --save htmldown
```
## Usage
```js
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: `foo` => `foo`
**getLanguage**
Type: `Function`
Define a function to tell it how to extract code block language from a className.
## License
MIT © [EGOIST](https://github.com/egoist)