Re:pandoc -f html -t markdown https://www.fsf.org
by dredmorbius on Thursday June 22, 2023 @09:31AM
(#36431886)
Pandoc is one of my favourite tools of the past decade.
Most often I'm using it to create HTML or PDF output from Markdown source, though it can also be used to bootstrap LaTeX documents.
Looking over the conversion formats, I'm noticing that pandoc accepts JSON as either a source or output format.
Given some recent web-scraping projects I've been engaged with, this ... looks interesting, particularly married to my other favourite new tool, jq, for parsing and manipulating JSON output....
Re:pandoc -f html -t markdown https://www.fsf.org
by dredmorbius on Thursday June 22, 2023 @09:33AM
(#36431922)
It's an interesting commentary that often the most straightforward way to convert from HTML to another format ... is to dump it straight to ASCII and add in the tagging manually.
I've done this for even very long documents (book length). Given the choice of manually proofing or manually editing, the latter generally seems preferable. Either way I've got to Read The Whole Damned Thing.
Most often I'm using it to create HTML or PDF output from Markdown source, though it can also be used to bootstrap LaTeX documents.
Looking over the conversion formats, I'm noticing that pandoc accepts JSON as either a source or output format.
Given some recent web-scraping projects I've been engaged with, this ... looks interesting, particularly married to my other favourite new tool, jq, for parsing and manipulating JSON output....
Hrm...
I've done this for even very long documents (book length). Given the choice of manually proofing or manually editing, the latter generally seems preferable. Either way I've got to Read The Whole Damned Thing.