Live data from Hacker News

Twenty Years of Pandoc

pandoc.org

11–20 of 55 posts

Re: Twenty Years of Pandoc

#11
Love pandoc, I use it for all sorts of stuff…here is my minimal static site generator:

find . -name '*.md' -type f -exec sh -c '

  for file do  
    out="docs/${file#./}"  
    out="${out%.md}.html"
    mkdir -p "$(dirname "$out")"  
    pandoc --quiet --template template.html "$file" -o "$out"  
  done  
' sh {} +

Re: Twenty Years of Pandoc

#13
One thing I like with pandoc is that it produces clean html or latex code (it can also produce clean markdown with the right option).

If you compare this with the HTML produced by typst or hevea, this is super useful, as we can then roll out our own styles.

Re: Twenty Years of Pandoc

#16

> by writing N parsers (“readers”) and M renderers (“writers”), one could support N × M conversions. 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 wi…

Well the difficult part is finding a good intermediate representation, which they did

Re: Twenty Years of Pandoc

#17
To top it all off Pandoc has a great experience for contributors. Over the past few years I've opened several bug reports related to Typst and docx and all of them got responses that were kind and helpful. I even had a few PRs merged in despite knowing almost nothing of Haskell.

Re: Twenty Years of Pandoc

#18
Pandoc is a fantastic piece of software. I have never had any issues with it, and it's the tool I reach for anytime I need to covert documents. I'm super grateful to John MacFarlane for creating it and maintaining it for all these years!

Re: Twenty Years of Pandoc

#19
Pandoc is awesome. My fav usage is configuring git to use it to normalize binary docs to markdown (like a .docx) so they can be diffed. Works amazing for redlining contacts.
Post reply on HN