From 863e216388fe8a5776620473a9301364c0c7d36b Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Tue, 8 Apr 2025 02:21:13 -0400 Subject: [PATCH] remove extra typst block because jgm/pandoc#10563 is merged closes #11093 continuing #11113 which contains a good end-to-end test --- .../quarto-post/typst-css-property-processing.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 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 da96e43d8ab..e206ae6b7de 100644 --- a/src/resources/filters/quarto-post/typst-css-property-processing.lua +++ b/src/resources/filters/quarto-post/typst-css-property-processing.lua @@ -284,17 +284,14 @@ function render_typst_css_property_processing() Table = function(tab) _warnings = new_table() local tabstyle = tab.attributes['style'] - local has_typst_text = false if tabstyle ~= nil then for clause in tabstyle:gmatch('([^;]+)') do local k, v = to_kv(clause) if k == 'font-family' then tab.attributes['typst:text:font'] = translate_string_list(v) - has_typst_text = true end if k == 'font-size' then tab.attributes['typst:text:size'] = _quarto.format.typst.css.translate_length(v, _warnings) - has_typst_text = true end end end @@ -314,13 +311,7 @@ function render_typst_css_property_processing() end aggregate_warnings() _warnings = nil - if not has_typst_text then return tab end - -- wrap in typst content block and return false to prevent processing its contents - return pandoc.Blocks({ - pandoc.RawBlock("typst", "#["), - tab, - pandoc.RawBlock("typst", "]") - }), false + return tab end, Div = function(div) _warnings = new_table()