Skip to content

Commit

Permalink
Merge pull request #7472 from quarto-dev/bugfix/7455
Browse files Browse the repository at this point in the history
Crossrefs: margins
  • Loading branch information
cscheid committed May 7, 2024
2 parents a036004 + 2d49263 commit 2440f26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/resources/filters/customnodes/floatreftarget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -783,13 +783,12 @@ function float_reftarget_render_html_figure(float)
pandoc.Attr("", {}, figure_attrs.figureAttr))
if float.type == "Listing" then
div.attr.classes:insert("listing")
elseif float.type == "Figure" then
-- apply standalone figure css
div.attr.classes:insert("quarto-figure")
div.attr.classes:insert("quarto-figure-" .. figure_attrs.align)
end
div.attr.classes:insert("quarto-float")

div.attr.classes:insert("quarto-figure")
div.attr.classes:insert("quarto-figure-" .. figure_attrs.align)

-- also forward any column or caption classes
local currentClasses = found_image.attr.classes
for _,k in pairs(currentClasses) do
Expand Down

0 comments on commit 2440f26

Please sign in to comment.