Closed twsh closed 3 years ago
@tarleb is this related to any of the recent Lua subsystem changes?
Looks like pandoc.utils.stringify
now converts all bare strings to the empty string for some reason. Not sure yet what's causing that, but the recent changes are almost definitely the culprit.
Found the problem. It boils down to Attr
retrieval being very permissive.
The argument for stringify
is retrieved via T.P.Lua.Module.Utils.peekAstElement
. Previously, a bare string was read as a MetaString
element, which is the last option in that list. But now that peekAttr
also accepts a bare string, it succeeded. But stringifying an Attr yields the empty string, hence the bug.
I'm going to push a change to pandoc which alters the order in peekAstElement
; that will resolves the issue.
Should be fixed with the next pandoc release, but I also pushed a small workaround for the current pandoc version.
When I try
make test
I get the following error, after upgrading to Pandoc 2.15: