pandoc-jats
pandoc-jats copied to clipboard
Conversion error
When trying to convert a file to JATS using the writer, I get a (not very helpful) error message:
pandoc: user error (Incorrect result type (string expected, got nil))
The conversion using the example files still works, but for my own file, it fails. Is there any further information I can provide in order to debug this?
I tracked this down to the BlockQuote feature: Removing all blockquotes from the input text removes the error, as does replacing
function BlockQuote(s)
xml('boxed-text', s)
end
by
function BlockQuote(s)
return "<blockquote>\n" .. s .. "\n</blockquote>"
end
I don’t fully understand why the code fails here.