A deno script to convert a section of a HTML page to markdown
./html2md [url]
deno run --allow-write --allow-net index.js [url]
deno compile --allow-write --allow-net index.js
sudo cp html2md /usr/bin/
Especify file output.
If nothing is passed it uses stdout.
DOM query selector of the section of the page to convert to markdown.
If nothing is passed the hole page will be converted.
DOM query selector of elements to be removed before convert. All matches will be removed.
DOM query selector of footnotes in text. It will follow the link to get the text.