🆕 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

Release pandoc 3.9 · jgm/pandoc

I'm pleased to announce the release of pandoc 3.9, available in the usual places: Binary packages & changelog: https://github.com/jgm/pandoc/releases/tag/3.9 Source & API documentation: http://ha...

GitHub

“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

Pandoc in the browser

@pandoc sh-sshh... can you hear that?

that's the sound of a few quintillion haskell package dependencies being uninstalled from my laptop!
😙👌

@metaphil 😁 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.
@pandoc thanks, good advice. the webapp is a great job, though. thanks for your efforts!
@pandoc #pandoc is one of the world wonders! Thank you!
@pandoc oh this is a really good idea.
pandoc is lovely software and I'm a big fan. 🩵

@pandoc

Sooo, how do you know that the documents won't leave your pc though? I mean you won't notice any code changes going forward, so even if you monitor your network traffic right now...

@agowa338 If you want to be absolutely, 110% certain that no data leaves your device, then put your browser into "offline mode" after loading the app. Firefox has an option for that in the “File” menu, and most other browsers allow to do it via the developer tools console, under the “Network” tab.
But if that's a real concern for some reason, then consider to run a dockerized version of pandoc instead. A container without network access gives similar guarantees.

#pandoc #data #security

@agowa338 @pandoc if this is a risk you’re concerned about, then self-host this open-source system so that you have control of when code changes are applied, and spend the effort to audit each patch before upgrading

Or continue to run pandoc locally

@pandoc amazing! Thanks for the good work!

If I can give a suggestion: don't block the whole UI while loading the wasm, but just the "convert" button, so that people can pick their document and options in parallel to the code loading

@miniBill Thank you! The UI has been updated following your suggestion. 🙏
@pandoc i use pandoc as part of a static website build using Deno. I think this will let me switch out the system command shell call to a wasm call.
@bri7 I'd love to see the result (if you can share it).

@pandoc my website is https://notes.yip.pe

the build script is listed in the index, as a polyglot file: it builts itself into an html file along with the other pages. each html file has an .md file source that just needs the extension changed.

so, because deno kinda follows web standards i may at some point some day be able to host the static builder in the browser as well as run it offline in a terminal. one day

Luci’s Notes

@pandoc hi, I love pandoc. That is all. Thank you for all your work
@pandoc yesss this is AWESOME ive been wishing for this forever and thought abt compiling it myself. im so glad there's a web version now :D
@pandoc This is absolutely fantastic! Thank you for your hard work!
@pandoc This is very cool! (and useful.) If you are ever in need of hosting for it (or any other pandoc project) then https://lysator.liu.se, a computer association I'm in can provide it for free. :)
Lysator

Lysator är en akademisk datorförening vid Linköpings universitet. Dess syfte är att ge medlemmarna möjlighet att utforska datorer och datavetenskap. Alla som studerar eller arbetar vid Linköpings universitet kan bli medlemmar.

@pandoc with filters and all! 🤯

@pandoc incredible work! I'll definitely be using this extensively :)

May I report a bug? It seems like files with names in Arabic (or other Unicode non-ASCII characters) gives this error: `ERROR: Unexpected end-of-input while parsing string literal`

Changing the file name to ASCII characters fixes the problem.

Thanks again for your work 🙏

@majdal Thanks for the report! The issue should be fixed now, please let us know in case it persists.

@pandoc I tried the #LaTeX example from https://en.wikipedia.org/wiki/LaTeX but pandoc WebÄpp threw an error when converting to PDF. :-(

(I did not expect a WebÄpp to be able to load texlive and everything.)

Besides my test I think this WebÄpp is neat.
#pandoc

LaTeX - Wikipedia

@txt_file We'd like to investigate the error, could you post some details? You can also file a bug report directly at http://github.com/jgm/pandoc/issues
@pandoc Will see whether I find the time and energy to file a proper issue report instead of "social" media post.
@pandoc The resulting PDF is even tagged for accessibility. Great work!
@matt The accessibility tagging is the work of the amazing folks behind @typst
@matt @pandoc Thanks to typst being PDF-UA ready, yeah. Awesome news.
@pandoc that is pretty cool