WebToMD is a CLI program written in Javascript to save articles as markdown files.
Under the hood the WebToMD uses Mozilla's Readability.js for extracting the main content, which is used in Firefox Reader Mode.
Also JSDom for parsing dynamic content which requires Javascript (for example: Angular.js, Vue.js and React sites) and the turndown library to write the DOM content to markdown.
This program output is design to be compatible with the markdown-clipper extension for Chrome and Firefox.
Use the package manager npm to install:
npm i -g webtomd
webtomd [link]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.