Skip to content

Commit 9d6460e

Browse files
committed
Read attributes on appearance and collapse from node
1 parent dfa902a commit 9d6460e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_extensions/custom-callout/customcallout.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ local function convertToCustomCallout(div)
9898
content = div.content,
9999
title = div.attributes.title or callout.title,
100100
icon = callout.icon,
101-
appearance = callout.appearance,
102-
collapse = callout.collapse
101+
appearance = div.attributes.appearance or callout.appearance,
102+
collapse = div.attributes.collapse or callout.collapse
103103
}
104104

105105
return quarto.Callout(calloutParams)

0 commit comments

Comments
 (0)