File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -387,8 +387,10 @@ _quarto.ast = {
387
387
_quarto .ast .grow_scaffold (node , index )
388
388
end
389
389
local pt = pandoc .utils .type (value )
390
- if pt == " Block" or pt == " Inline" then
391
- node .content [index ].content = {value }
390
+ if pt == " Block" then
391
+ node .content [index ].content = pandoc .Blocks {value }
392
+ elseif pt == " Inline" then
393
+ node .content [index ].content = pandoc .Inlines {value }
392
394
else
393
395
node .content [index ].content = value
394
396
end
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ function code_annotations()
310
310
-- if code annotations is false, then shut it down
311
311
if codeAnnotations ~= false then
312
312
313
- local outputs = pandoc .List ()
313
+ local outputs = pandoc .Blocks {}
314
314
315
315
-- annotations[annotation-number] = {list of line numbers}
316
316
local pendingAnnotations = nil
You can’t perform that action at this time.
0 commit comments