pandoc
mastodon 4.7.3Tips and news about #pandoc, the universal document converter by John MacFarlane. This account is run by @tarleb@scholar.social.
All posts made from this account are licensed under CC BY 4.0, meaning that you're free to use everything however you want, just please cite your sources.
Pandoc in the browser, with a friendly interface. This app is a web-assembly version of pandoc, the documents never leave your computer:
🆕 pandoc 3.10 🚀
• Added a `--typst-input` option, which allows passing arbitrary `sys.inputs` parameters to the typst evaluator.
• ODT now uses predefined styles instead of emitting automatic styles for every paragraph. The result is easier to style. Custom reference.odt documents should be updated.
And much more.
The pandoc wasm demo, which allows to run document conversions in the browser, now supports Lua filters!
https://pandoc.org/wasm-demo/
There is now an up-to-date pandoc-wasm package available on npm.
The credit for this goes to @gws@fosstodon.org and @johanneswilm@mastodon.world thanks a lot!
The Lua system now includes `pandoc.utils.documentation` for online help. Pass it a pandoc function or module, and it will return the docs for that object.
Docker images in the pandoc/latex and pandoc/extra repositories have often had missing packages. The reason was the release of TeXLive 2026 and, what appears to be, a moody archive server for TeXLive 2025.
The “latest” images, which contain the newest pandoc 3.9.0.2, come with TeXLive 2026 and should work fine.
Apologies to everybody inconvenienced by this.
@metaphil@chaos.social 😁 Sounds like you're on Arch Linux, as that's a general problem with Haskell apps on Arch. If you want to keep pandoc installed locally, then checkout the pandoc-bin package on AUR. It's not maintained by any of the pandoc core devs, but is generally accepted as the best way to install pandoc on Arch.
New in pandoc 3.9:
Many CSL styles will format citations differently when the same source has been cited earlier. In documents with chapters, it is usually desirable to reset this position information at the beginning of every chapter. To do this, add the class `reset-citation-positions` to the heading for each chapter:
# The Beginning {.reset-citation-positions}
Note that this class only has an effect when placed on top-level headings; it is ignored in nested blocks.
Pandoc is written in #Haskell (https://haskell.org), an advanced, purely functional programming language. It was chosen for its great parser support, which was ahead of its time when pandoc was born in 2006. The language is also uniquely suited for a long-lived project, as the strong typing helps tremendously to keep things maintainable.
#pandoc
The default HTML-output generated by pandoc is polyglot HTML, i.e., it's both valid HTML and XML.
The `tidy` utility is a tool that can generate pure HTML; it can also shed a few bytes by omitting optional tags. E.g.
pandoc --to=html -s … | tidy -q -ashtml -omit
@rhaen@digitalcourage.social
Nice. You might also like our official images, e.g.
https://hub.docker.com/r/pandoc/latex
https://hub.docker.com/r/pandoc/extra
The latter ships with Eisvogel.