pandoc-jats icon indicating copy to clipboard operation
pandoc-jats copied to clipboard

Conversion error

Open frederik-elwert opened this issue 8 years ago • 1 comments

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?

frederik-elwert avatar Jul 13 '17 09:07 frederik-elwert

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.

frederik-elwert avatar Jul 18 '17 09:07 frederik-elwert