Skip to content

Commit

Permalink
Read attributes on appearance and collapse from node
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Oct 20, 2024
1 parent dfa902a commit 9d6460e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _extensions/custom-callout/customcallout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ local function convertToCustomCallout(div)
content = div.content,
title = div.attributes.title or callout.title,
icon = callout.icon,
appearance = callout.appearance,
collapse = callout.collapse
appearance = div.attributes.appearance or callout.appearance,
collapse = div.attributes.collapse or callout.collapse
}

return quarto.Callout(calloutParams)
Expand Down

0 comments on commit 9d6460e

Please sign in to comment.