From e6f5bcfd81a7d3f04acd7225851c68fc792aa547 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Wed, 23 Oct 2024 12:49:11 -0400 Subject: [PATCH] div not necessary here, we can return Blocks --- .../filters/quarto-post/typst-css-property-processing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/filters/quarto-post/typst-css-property-processing.lua b/src/resources/filters/quarto-post/typst-css-property-processing.lua index 17a8b413421..8887dc9c43a 100644 --- a/src/resources/filters/quarto-post/typst-css-property-processing.lua +++ b/src/resources/filters/quarto-post/typst-css-property-processing.lua @@ -315,8 +315,8 @@ function render_typst_css_property_processing() aggregate_warnings() _warnings = nil if not has_typst_text then return tab end - -- Create Div wrapper and return false to prevent processing its contents - return pandoc.Div({ + -- wrap in typst content block and return false to prevent processing its contents + return pandoc.Blocks({ pandoc.RawBlock("typst", "#["), tab, pandoc.RawBlock("typst", "]")