1.0.6 • Published 6 years ago

html2md2 v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

a tool convert html to markdown

Install

npm install -g html-md

Usage

# parse url, convert to markdown file
# `-o` refer to output filename
html2md convert -u https://www.your-article-path.com/abc -o  abc.md  

# parse url, get a part of html, convert to markdown file.
# `-s` refer to DOM selector
html2md convert -u https://www.your-article-path.com/abc -s '#article' -o abc.md 

# set qiniu key, which is used to upload images to qiniu bucket
html2md config --help

# parse url, get a part of html, convert to markdown file.
# `-q` means upload images to qiniu
html2md convert -u https://www.your-article-path.com/abc -s '$(".article").eq(0)' -o abc.md -q

Thanks

jirengu.com