16 comments

  • adamddev16 hours ago
    &gt; <i>by writing N parsers (“readers”) and M renderers (“writers”), one could support N × M conversions.</i><p>Beautiful writeup for a wonderful project. In an age of vibe-coding hype it&#x27;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.<p>&gt; <i>Perhaps, then, in the future, people will no longer have a need for tools like pandoc.</i><p>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&#x27;s still so many more orders of magnitude better in efficiency, especially with big batch jobs etc.
    • vatsachak3 hours ago
      Well the difficult part is finding a good intermediate representation, which they did
  • raybb2 hours ago
    To top it all off Pandoc has a great experience for contributors. Over the past few years I&#x27;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.
  • rahimnathwani6 hours ago
    Pandoc is great. I use it multiple times per day to move content between Outlook emails and a coding harness:<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;rahimnathwani&#x2F;210b1f9cb6ce731a30432227772d6f85" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;rahimnathwani&#x2F;210b1f9cb6ce731a304322...</a><p><pre><code> cat email-to-xyz.md | md2clip clip2md &gt; email-from-xyz.md</code></pre>
  • aanet4 hours ago
    That a professor of philosophy [1] made tools [2] that are used by millions around the world... that&#x27;s just mind boggling. In a good (great!) way.<p>Pandoc is my go-to tool. Thank you, Sir!<p>[1] <a href="https:&#x2F;&#x2F;johnmacfarlane.net&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;johnmacfarlane.net&#x2F;index.html</a><p>[2] <a href="https:&#x2F;&#x2F;johnmacfarlane.net&#x2F;tools.html" rel="nofollow">https:&#x2F;&#x2F;johnmacfarlane.net&#x2F;tools.html</a>
  • malkosta5 hours ago
    Love pandoc, I use it for all sorts of stuff…here is my minimal static site generator:<p>find . -name &#x27;*.md&#x27; -type f -exec sh -c &#x27;<p><pre><code> for file do out=&quot;docs&#x2F;${file#.&#x2F;}&quot; out=&quot;${out%.md}.html&quot; mkdir -p &quot;$(dirname &quot;$out&quot;)&quot; pandoc --quiet --template template.html &quot;$file&quot; -o &quot;$out&quot; done </code></pre> &#x27; sh {} +
  • koolba1 hour ago
    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.
  • aaplok4 hours ago
    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).<p>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.
  • darthoctopus8 hours ago
    Thank you for pandoc. I made the (at the time perhaps not transparently wise) choice to go all in on it when I started my PhD, and that decision has paid nothing but dividends since. I owe my career as a scientist to it.
  • jiehong8 hours ago
    Thanks so much for pandoc!<p>I never heard about djot [0], is anyone using it?<p>[0]: <a href="https:&#x2F;&#x2F;djot.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;djot.net&#x2F;</a>
    • gnyeki3 hours ago
      Djot is great, I wrote a web server that uses it natively.[0]<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;gn0&#x2F;nvim-web-server" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gn0&#x2F;nvim-web-server</a>
  • Curiositry1 hour ago
    Pandoc is a fantastic piece of software. I have never had any issues with it, and it&#x27;s the tool I reach for anytime I need to covert documents. I&#x27;m super grateful to John MacFarlane for creating it and maintaining it for all these years!
  • rao-v6 hours ago
    I have at times mused that writing the internal state of pandoc to disk (yes 13th standard etc) would be the most interoperable file format
    • mjmas3 hours ago
      <p><pre><code> pandoc document.md --to native</code></pre>
  • w10-11 hour ago
    unending thanks, as much for pandoc as for the example of a clear design+implementation that lasts.
  • graemep7 hours ago
    Pandoc is amazing. I have HTML and want a PDF? One command and it just works painlessly. That was just my last use of pandoc this weekend. I do not use it that often, but when I do its perfect.
  • dannyobrien5 hours ago
    My most used pandoc snippet:<p>tidyhtml () { pandoc -f html-native_divs-native_spans -t markdown-raw_html-raw_attribute | pandoc -f markdown -t html }<p>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!
  • BeetleB5 hours ago
    pandoc was (and still is) critical to some of my flows. I hope it never dies!
  • oytech6 hours ago
    Effort worth admiration. Thank you for creating pandoc! It allowed me to write my CV in more readable markdown, but also get nice pdf with latex.