https://github.com/iamcco/htom
convert html to markdown
https://github.com/iamcco/htom
Last synced: 3 months ago
JSON representation
convert html to markdown
- Host: GitHub
- URL: https://github.com/iamcco/htom
- Owner: iamcco
- License: mit
- Created: 2018-05-20T05:02:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T13:31:37.000Z (over 7 years ago)
- Last Synced: 2024-10-05T21:46:25.150Z (over 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# htom
convert html to markdown
- list support
- nested list support
- task list support
- table support
- ...
## usage
**install**
```bash
yarn add htom
# or
npm install htom
```
**usage**
```javascript
const htom = require('htom').default;
htom('
test html
').then(markdown => console.log(markdown));
```
**build & test**
```
git clone https://github.com/iamcco/htom.git
cd htom
npm install
# build
npm run build
#test
npm run test
```
## screenshot
**html for convert:**

**output markdown:**
