Live data from Hacker News

Ask HN: CLI tool to download webpages and convert to Markdown?

news.ycombinator.com

1–10 of 10 posts

Re: Ask HN: CLI tool to download webpages and convert to Markdown?

#4

I find Joplin https://joplinapp.org does a good job of producing markdown from web pages and already has sync capability built in. Looks like it would be ideal for working with Obsidian

Exported my Joplin markdown and opened it up in Obsidian. Works like a dream and the best part is Jopli already has it's own web clipper. Seems like a superb match

Re: Ask HN: CLI tool to download webpages and convert to Markdown?

#5
post #2

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...

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 Markdown?

#6
post #2

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...

I tried that on a HackerNews page and the content of the output file foo.md was in html.

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

Re: Ask HN: CLI tool to download webpages and convert to Markdown?

#8
post #2

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...

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.