logoalt Hacker News

Pandoc Lua Filters

125 pointsby ankitg12last Friday at 9:52 AM11 commentsview on HN

Comments

lifthrasiirtoday at 8:14 AM

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 2 replies
kalcodetoday at 3:35 PM

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.

leephillipstoday at 1:58 PM

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/

chaoxutoday at 9:28 AM

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.