@@ -335,18 +335,6 @@ end, function(float)
335335 float .content .caption .long = float .caption_long
336336 float .content .attr = pandoc .Attr (float .identifier , float .classes or {}, float .attributes or {})
337337 return float .content
338- elseif float_type == " lst" then
339- local handle_code_block = function (codeblock )
340- codeblock .attr = merge_attrs (codeblock .attr , pandoc .Attr (" " , float .classes or {}, float .attributes or {}))
341- return codeblock
342- end
343- if float .content .t == " CodeBlock" then
344- float .content = handle_code_block (float .content )
345- else
346- float .content = _quarto .ast .walk (float .content , {
347- CodeBlock = handle_code_block
348- })
349- end
350338 end
351339
352340 local fig_scap = attribute (float , kFigScap , nil )
@@ -630,19 +618,6 @@ _quarto.ast.add_renderer("FloatRefTarget", function(_)
630618 return _quarto .format .isHtmlOutput ()
631619end , function (float )
632620 decorate_caption_with_crossref (float )
633-
634- ---- --------------------------------------------------------------------------------
635- -- Special handling for listings
636- local found_listing = get_node_from_float_and_type (float , " CodeBlock" )
637- if found_listing then
638- found_listing .attr = merge_attrs (found_listing .attr , pandoc .Attr (" " , float .classes or {}, float .attributes or {}))
639- -- FIXME this seems to be necessary for our postprocessor to kick in
640- -- check this out later
641- found_listing .identifier = float .identifier
642- end
643-
644- ---- --------------------------------------------------------------------------------
645-
646621 return float_reftarget_render_html_figure (float )
647622end )
648623
@@ -1017,13 +992,6 @@ end, function(float)
1017992 -- Listings shouldn't emit centered blocks.
1018993 -- We don't know how to disable that right now using #show rules for #figures in template.
1019994 content :insert (1 , pandoc .RawBlock (" typst" , " #set align(left)" ))
1020-
1021- -- Classes and attributes for the CodeBlocks needs to be set from the parsed floats to the CodeBlock
1022- local found_listing = get_node_from_float_and_type (float , " CodeBlock" )
1023- if found_listing then
1024- found_listing .attr = merge_attrs (found_listing .attr , pandoc .Attr (" " , float .classes or {}, float .attributes or {}))
1025- end
1026-
1027995 end
1028996
1029997 if float .has_subfloats then
0 commit comments