File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
src/resources/filters/quarto-post Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -284,17 +284,14 @@ function render_typst_css_property_processing()
284284 Table = function (tab )
285285 _warnings = new_table ()
286286 local tabstyle = tab .attributes [' style' ]
287- local has_typst_text = false
288287 if tabstyle ~= nil then
289288 for clause in tabstyle :gmatch (' ([^;]+)' ) do
290289 local k , v = to_kv (clause )
291290 if k == ' font-family' then
292291 tab .attributes [' typst:text:font' ] = translate_string_list (v )
293- has_typst_text = true
294292 end
295293 if k == ' font-size' then
296294 tab .attributes [' typst:text:size' ] = _quarto .format .typst .css .translate_length (v , _warnings )
297- has_typst_text = true
298295 end
299296 end
300297 end
@@ -314,13 +311,7 @@ function render_typst_css_property_processing()
314311 end
315312 aggregate_warnings ()
316313 _warnings = nil
317- if not has_typst_text then return tab end
318- -- wrap in typst content block and return false to prevent processing its contents
319- return pandoc .Blocks ({
320- pandoc .RawBlock (" typst" , " #[" ),
321- tab ,
322- pandoc .RawBlock (" typst" , " ]" )
323- }), false
314+ return tab
324315 end ,
325316 Div = function (div )
326317 _warnings = new_table ()
You can’t perform that action at this time.
0 commit comments