News for hackers. Stuff that matters.
Re:Ask HN: CLI tool to download webpages and convert to Mark... by miles on Thursday June 11, 2020 @11:42PM (#23495810)

  curl --silent https://example.com/foo.html | pandoc --from html --to markdown_strict -o foo.md
From Converting HTML to Markdown using Pandoc http://www.cantoni.org/2019/01/27/converting-html-markdown-u...
Re:Ask HN: CLI tool to download webpages and convert to Mark... by crazypython on Friday June 12, 2020 @08:22AM (#23498492)
I'd like to add that Calibre (ebook-convert on the CLI) has a mode for outputting a .txt file with markdown formatting. It can take HTML as input.
Re:Ask HN: CLI tool to download webpages and convert to Mark... by I_complete_me on Friday June 12, 2020 @04:24AM (#23497206)
I tried that on a HackerNews page and the content of the output file foo.md was in html.
Re:Ask HN: CLI tool to download webpages and convert to Mark... by miles on Friday June 12, 2020 @04:49AM (#23497330)
Sorry, had only tested it on my own site, which worked as expected:

  curl --silent https://tinyapps.org/ | pandoc --from html --to markdown_strict -o index.md