html2md2

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i html2md2

Weekly Downloads

0

Version

1.0.6

License

ISC

Last publish

Collaborators

  • hunger