top | item 46987785

Pandoc in the Browser with WASM

34 points| vinnyhaps | 19 days ago |discourse.haskell.org

7 comments

order

iib|18 days ago

This is really nice to know. I remember trying to compile pandoc to Wasm after finding out that ghc had Wasm support, hitting all kinds of problems and then realising that there was no real way to post an issue to Haskell's gitlab repo without being pre-approved.

I guess now with LLMs, this makes more sense than ever, but it was a frustrating experience.

rustyhancock|18 days ago

> no real way to post an issue to Haskell's gitlab repo without being pre-approved.

This is so on brand for Haskell people I love it.

fiddlosopher|18 days ago

The web app can be found at https://pandoc.org/app . This has almost the full power of the command-line app, subject to the limitations imposed by the WASM sandbox. Thus:

- the app cannot fetch resources using HTTP

- JSON filters are not supported, as they involve external programs

- Lua filters are supported, but only if they don't try to do system IO operations or run external programs

- Output to PDF is supported only via Typst (using the WASM version of Typst).

hbcondo714|18 days ago

> ERROR: Unknown input format pdf Pandoc can convert to PDF, but not from PDF

Darn