You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 45caede
Browse filesBrowse the repository at this point in the historyBrowse files
Use _quarto.modules registry instead of redundant module requires in filters (#14702)
Pandoc's Lua interpreter caps top-level local variables at 200
(MAXVARS) across the whole bundled filter chain, and main.lua was
already at that ceiling with zero headroom - blocking evaluation of
a bump to Pandoc 3.10. `modules/import_all.lua` already centralizes
most `modules/*` requires into a `_quarto.modules` registry table at
no local-slot cost, but ~24 inlined filter files still redundantly
re-required the same modules (constants, patterns, lightbox, scope,
typst) as fresh top-level locals.
- Replace `local X = require("modules/Y")` aliases with direct
`_quarto.modules.Y` access at every call site across common,
customnodes, init, layout, crossref, quarto-pre, quarto-post, and
normalize/flags.lua filters
- Pure access-path change to an already-loaded singleton table - no
logic or API change
- Drops packaged bundle's top-level local count from ~200 to 173
Verified packaged `quarto check` passes with no "too many local
variables" error, packaged lightbox (HTML) and typst (PDF) renders
succeed, and smoke-all coverage for the edited filters passes.
Follow-up to #14664.
0 commit comments