@@ -7,7 +7,7 @@ function citesPreprocess()
77
88 Note = function (note )
99 if _quarto .format .isLatexOutput () and marginCitations () then
10- return pandoc . walk_inline (note , {
10+ return _quarto . ast . walk (note , {
1111 Inlines = walkUnresolvedCitations (function (citation , appendInline , appendAtEnd )
1212 appendAtEnd (citePlaceholderInline (citation ))
1313 end )
@@ -21,7 +21,7 @@ function citesPreprocess()
2121 if hasMarginColumn (figure ) or hasMarginCaption (figure ) then
2222 -- This is a figure in the margin itself, we need to append citations at the end of the caption
2323 -- without any floating
24- para .content [1 ] = pandoc . walk_inline (figure , {
24+ para .content [1 ] = _quarto . ast . walk (figure , {
2525 Inlines = walkUnresolvedCitations (function (citation , appendInline , appendAtEnd )
2626 appendAtEnd (citePlaceholderInlineWithProtection (citation ))
2727 end )
@@ -30,7 +30,7 @@ function citesPreprocess()
3030 elseif marginCitations () then
3131 -- This is a figure is in the body, but the citation should be in the margin. Use
3232 -- protection to shift any citations over
33- para .content [1 ] = pandoc . walk_inline (figure , {
33+ para .content [1 ] = _quarto . ast . walk (figure , {
3434 Inlines = walkUnresolvedCitations (function (citation , appendInline , appendAtEnd )
3535 appendInline (marginCitePlaceholderWithProtection (citation ))
3636 end )
@@ -56,7 +56,7 @@ function citesPreprocess()
5656 end
5757 end
5858 else
59- return pandoc . walk_block (div , {
59+ return _quarto . ast . walk (div , {
6060 Inlines = walkUnresolvedCitations (function (citation , appendInline , appendAtEnd )
6161 if hasMarginColumn (div ) then
6262 appendAtEnd (citePlaceholderInline (citation ))
0 commit comments