Skip to content

Commit

Permalink
Don’t walk divs directly
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Sep 17, 2023
1 parent ca1e9a7 commit 628a0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/filters/layout/lightbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function lightbox()
if div.classes:includes("cell") and div.attributes["lightbox"] ~= nil then
meta = quarto.json.decode(div.attributes["lightbox"])
local codeImgCount = 0
div = div:walk({
div = _quarto.ast.walk({
Image = function(imgEl)
codeImgCount = codeImgCount + 1
if (type(meta) == "table" and meta[kNoLightboxClass] == true) or meta == false then
Expand Down

0 comments on commit 628a0de

Please sign in to comment.