Twenty Years of Pandoc
Posted by fiddlosopher 8 hours ago
Comments
Comment by dannyobrien 1 minute ago
tidyhtml () { pandoc -f html-native_divs-native_spans -t markdown-raw_html-raw_attribute | pandoc -f markdown -t html }
which strips out styling, wrapper divs, spans, inline attributes, etc from (for instance) HTML copied from a google or word doc. Just the semantic goodness!
Comment by adamddev1 45 minutes ago
Beautiful writeup for a wonderful project. In an age of vibe-coding hype it's also so nice to see how things can be extended and snowball in usefulness when things are built correctly, by hand, from basic principles.
> Perhaps, then, in the future, people will no longer have a need for tools like pandoc.
I think we will need wonderful things like pandoc more and more. As mentioned there is a huge ecological and practical difference. Even if LLMs could get infintisamally close to deterministic-level reliability, it's still so many more orders of magnitude better in efficiency, especially with big batch jobs etc.
Comment by rahimnathwani 35 minutes ago
https://gist.github.com/rahimnathwani/210b1f9cb6ce731a304322...
cat email-to-xyz.md | md2clip
clip2md > email-from-xyz.mdComment by rao-v 46 minutes ago
Comment by oytech 14 minutes ago
Comment by jiehong 2 hours ago
I never heard about djot [0], is anyone using it?
[0]: https://djot.net/
Comment by darthoctopus 3 hours ago
Comment by graemep 1 hour ago