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 10da1f7
Browse filesBrowse the repository at this point in the historyBrowse files
Fix unguarded .content[1].t access in Lua filters (#14587)
Multiple Lua filters crash when content is empty or structurally
unexpected — same class of latent bug as #14585 (empty blockquote).
Migrate unsafe `.content[1].t` checks to `quarto.utils.match()` where
possible, add explicit nil guards elsewhere, and fix a logic bug.
- latexdiv.lua: guard empty div content with match("[1]/Para")
- parsefiguredivs.lua: fix and→or logic bug in Figure bail-out;
migrate nested Image type check to match("[1]/Para/[1]/Image")
- pandoc3_figure.lua: migrate linked-image check to
match("[1]/Plain/[1]/Link"); add Typst empty-content early return
- crossref/theorems.lua: remove 90 lines of dead Div handler —
parseblockreftargets (Dec 2023) converts proof divs to custom
nodes before crossref_theorems() runs, making it unreachable
- Regression tests for each fix via smoke-all qmd files with
pre-ast filters that inject empty/malformed AST nodes
0 commit comments