Pandoc Lua Filters

125 points11 comments2 days ago
lifthrasiir

Is there anyone feeling that Pandoc is ever increasingly bloated? I have used Lua filters a decade ago [1] and the current documentation is nothing like my memories. I'm not even sure that how much of Lua scripts remain compatible across different Pandoc versions.

[1] https://github.com/mearie/mearie.github.io/blob/source/res/w...

show comments
kalcode

I liked the Lua filters for solving issues on DOCX stuff for Markdown to Docx.

For PDF stuff I haven't needed much Lua filters since switching to WeasyPrint for the PDF engine.

leephillips

Lua filters for Pandoc have been around for a quite a while. What’s newer is Pandoc’s ability to be used in web browsers. There’s a bit more about this and a general rundown of Pandoc in my recent article for LWN:

https://lwn.net/Articles/1064692/

chaoxu

I've always wondered if pandoc can be made reactive. Say markdown to Pandoc AST.

If one changes something, a quick update to the AST would happen incrementally.

Now with all these llm I might actually see if it can be done.

show comments