Skip to content

Commit

Permalink
use long + inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Dec 22, 2023
1 parent b6f4039 commit 2da03b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/filters/layout/lightbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function lightbox()
if description ~= nil then
local descId = "lightbox-desc-" .. imgCount
descEl = pandoc.Span({}, pandoc.Attr("", {"glightbox-desc", descId}))
descEl.content = description
descEl.content = _quarto.utils.as_inlines(description)

linkAttributes["data-glightbox"] = "description: ." .. descId
end
Expand Down Expand Up @@ -117,7 +117,7 @@ function lightbox()
local function processFigure(figEl)
return _quarto.ast.walk(figEl, {
Image = function(imgEl)
return processImg(imgEl, { automatic = true, caption = figEl.caption })
return processImg(imgEl, { automatic = true, caption = figEl.caption.long })
end
})
end
Expand Down

0 comments on commit 2da03b4

Please sign in to comment.