From cc2d14cd57cd24df08f16061d9eec6cfb6fa69a6 Mon Sep 17 00:00:00 2001 From: Damien Debot Date: Mon, 27 May 2024 09:51:04 +0200 Subject: [PATCH] Typst callout without body See #9763 --- .../formats/typst/pandoc/quarto/definitions.typ | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/resources/formats/typst/pandoc/quarto/definitions.typ b/src/resources/formats/typst/pandoc/quarto/definitions.typ index e6dba6fc69..6e0bfeb8f3 100644 --- a/src/resources/formats/typst/pandoc/quarto/definitions.typ +++ b/src/resources/formats/typst/pandoc/quarto/definitions.typ @@ -162,9 +162,12 @@ fill: background_color, width: 100%, inset: 8pt)[#text(icon_color, weight: 900)[#icon] #title]) + - block( - inset: 1pt, - width: 100%, - block(fill: white, width: 100%, inset: 8pt, body))) + if(body != []){ + block( + inset: 1pt, + width: 100%, + block(fill: white, width: 100%, inset: 8pt, body)) + } + ) }