You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by wlupton December 9, 2024
I have noticed that pandoc.utils.stringify() can behave differently in pandoc 3.6. Probably it now behaves as documented, and previously was too lax?
The case that I hit was an attempt to stringify a Caption. Previously this worked but I guess it shouldn't, because you're only supposed to be able to stringify AST elements, and captions are objects with long (Blocks) and short (Inlines) fields.
However, should the behaviour have changed? I'm not sure.
Here are my tests.
% cat figure.md
![Cat](Cat.png)
% cat caption.lua
function Figure(figure)
local caption = pandoc.utils.stringify(figure.caption)
io.stderr:write(string.format('#### caption = %s\n', caption))
end
Discussed in #10447
Originally posted by wlupton December 9, 2024
I have noticed that
pandoc.utils.stringify()
can behave differently in pandoc 3.6. Probably it now behaves as documented, and previously was too lax?The case that I hit was an attempt to stringify a
Caption
. Previously this worked but I guess it shouldn't, because you're only supposed to be able to stringify AST elements, and captions are objects withlong
(Blocks
) andshort
(Inlines
) fields.However, should the behaviour have changed? I'm not sure.
Here are my tests.
The text was updated successfully, but these errors were encountered: