Tips and news about #pandoc, the universal document converter by John MacFarlane. This account is run by @tarleb. 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.
Public Key
npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 Profile Code
nprofile1qqst6jmukmf0syc7ss7uc5h023zggc5ekpfsf4y4mujgcnkghffzmyqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduqs6amnwvaz7tmwdaejumr0ds5uwt2u
Show more details
Published at
2026-06-05T08:30:02Z Event JSON
{
"id": "7fee26c0dcfaa18d759a69127c2982bb741795aa39641d18296d2a414bb1438c" ,
"pubkey": "bd4b7cb6d2f8131e843dcc52ef5444846299b05304d495df248c4ec8ba522d90" ,
"created_at": 1780648202 ,
"kind": 0 ,
"tags": [
[
"proxy",
"https://fosstodon.org/users/pandoc",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "{\"name\":\"pandoc\",\"about\":\"Tips and news about #pandoc, the universal document converter by John MacFarlane. This account is run by @tarleb.\\n\\nAll 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.\",\"picture\":\"https://cdn.fosstodon.org/accounts/avatars/109/248/151/424/624/982/original/fa3aae47f32d887d.png\",\"banner\":\"https://cdn.fosstodon.org/accounts/headers/109/248/151/424/624/982/original/8753192cf4085df3.jpeg\",\"nip05\":\"[email protected] \",\"fields\":[[\"website\",\"https://pandoc.org\"],[\"code\",\"https://github.com/jgm/pandoc\"],[\"posts by\",\"https://github.com/tarleb\"],[\"extensions\",\"https://github.com/pandoc-ext\"]]}" ,
"sig": "3a0e342f4f8f312e475ae2da2668b0b21eb7cd33df9f2b1f066113e188b0ebb625af4656ba01a20cfcaa5d4fad00eedebd6368d513ec50969cbeebda44825139"
}
Last Notes npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 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 #pandoc #html #html5 #xml #tidy npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc “pandoc for the people”, the pandoc wasm web-app, is now available at https://pandoc.org/app/ It allows to run any kind of document conversion that pandoc supports in the browser. The documents never leave the computer, thus ensuring *full privacy*. Conversions to pdf are done via Typst. #pandoc #wasm #typst npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc 🆕 pandoc 3.9 🎉🚀 • Official support for wasm (WebAssembly), allowing to run pandoc in the browser, • the *alerts* extension is now available in the pandoc Markdown flavor, • support for defaults files using JSON instead of YAML, • extension of `${.}` vars in the `defaults` field, making it easier to base defaults files on other defaults, • method to run Lua code with a modified pandoc state, • and much more Many thanks to all who contributed! https://github.com/jgm/pandoc/releases/tag/3.9 #pandoc #release npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc The pandoc wasm demo, which allows to run document conversions in the browser, now supports Lua filters! https://pandoc.org/wasm-demo/ #pandoc #wasm #Lua #LuaFilter npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc Off-label uses of pandoc: conversion between text encodings. E.g., UTF-8 to UTF-16: echo 'X' | pandoc lua -e 'io.write(pandoc.text.toencoding(io.read"a", "utf-16"))' Other direction: echo 'X' | pandoc lua -e 'io.write(pandoc.text.fromencoding(io.read"a", "utf-16"))' The set of supported encodings is platform dependent, but always includes UTF-8, UTF-16, UTF-32, and latin1. #pandoc #Unicode #encoding #conversion npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc 🆕 pandoc 3.8.3 🎉 This release adds three new input formats (#Asciidoc, #PPTX, and #XLSX) and one new output format (#BBCode + variants). It also fixes a number of bugs (including some regressions in 3.8). See the changelog for full details. Thanks to all who contributed! https://github.com/jgm/pandoc/releases/tag/3.8.3 #pandoc #release npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc A “hidden feature” of pandoc, because it's not mentioned in the manual: Typst properties. E.g., use this Markdown to get very large text: ::: {typst:text:size=48pt} Isn't this great? ::: All text properties can be modified this way, and block properties can be set with `typst:property`. The full docs are here: https://pandoc.org/typst-property-output.html #pandoc #typst npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc 🆕 release: pandoc 3.8 🎉 This release comes with many small improvements and a few larger ones. Among the more visible changes: • A new input/output format `xml`, which represents a pandoc AST in XML. • Syntax highlighting updates, including a new command line option `--syntax-highlighting`. • New extensions `smart_quotes` and `special_strings` for org mode, bringing pandoc's parsing closer to Emacs org-mode's behavior. Thanks to all who contributed! https://github.com/jgm/pandoc/releases/tag/3.8 #pandoc #release npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc Emiliano Heyns authored a filter to create docx and odt documents that have "live" citations, i.e., citations that are linked to a Zotero database: https://retorque.re/zotero-better-bibtex/exporting/pandoc/index.html#from-markdown-to-zotero-live-citations #pandoc #zotero #citeproc #LuaFilter npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc Massimiliano Farinella wrote #pundok, a visual #editor for #pandoc. The editor is based on pandoc's internal format, so no information is lost when transferring the documents to pandoc for further processing. The editor is written using #ProseMirror and #Tiptap; it can be included in web pages or be run standalone (via Electron). https://github.com/massifrg/pundok-editor npub1h49hedkjlqf3appae3fw74zys33fnvznqn2fthey338v3wjj9kgq36dax7 pandoc A number of formats, including #EPUB, #ODT, #docx, and #PDF (via #TeXLaTeX, #Typst, ...) include the document's build time. This can be an issue for reproducible builds. Set the SOURCE_DATE_EPOCH environment variable to an integer value¹ to use a fixed time instead. SOURCE_DATE_EPOCH=682984800 pandoc … ¹ Seconds in the Unix epoch. Get the current epoch time with `date +%s`. #pandoc #reproduciblebuilds