Skip to content

Commit e156acb

Browse files
authored
Merge pull request #9772 from debdagybra/Typst-callout-without-body
Typst callout without body
2 parents 6d09c3a + 4601634 commit e156acb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/resources/formats/typst/pandoc/quarto/definitions.typ

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,12 @@
162162
fill: background_color,
163163
width: 100%,
164164
inset: 8pt)[#text(icon_color, weight: 900)[#icon] #title]) +
165-
block(
166-
inset: 1pt,
167-
width: 100%,
168-
block(fill: white, width: 100%, inset: 8pt, body)))
165+
if(body != []){
166+
block(
167+
inset: 1pt,
168+
width: 100%,
169+
block(fill: white, width: 100%, inset: 8pt, body))
170+
}
171+
)
169172
}
170173

0 commit comments

Comments
 (0)