Expanding Quarto's Capabilities with Lua
summary
Shows how Lua filters actually modify the Pandoc AST to solve concrete problems, with working examples: a filter that appends a trademark symbol to every "Acme Inc" string and a header filter that inserts decorative suits, both producing the expected HTML output. Explains use of the .native AST dump, the three API layers — Lua base, Pandoc AST, Quarto Lua API — and how to package and distribute filters as extensions using quarto add from GitHub so they reuse across projects.
AI-written summary · about
chapters (8)
- 0:00Lua filters in Quarto
- 1:04Lua filters solve problems
- 3:56Lua filter: trademark symbols
- 8:38Lua filter: header decorations
- 11:51Lua filters and AST
- 14:20Inserting Lua filters
- 15:24Turning filters into Quarto extensions
- 17:58Key takeaways
related talks
20mExtending Quarto
19mReproducible, dynamic, and elegant books with Quarto
01h 06mHello Quarto: Share, Collaborate, Teach, Reimagine
18mWe Converted our Documentation to Quarto
20mWhat's New in Quarto?*
20mNever again in outer par mode: making next-generation PDFs with Quarto & typst
18mThanks, I Made It with Quartodoc
05mJSquarto: Bridging JavaScript Documentation with Quarto's Power
