Closed egh closed 9 years ago
This problem is related to parsing the template default.jats
and properly handling missing funding-statement
information. I will look into this.
I have also just started to rewrite the JATS write in Haskell, but that may take 2-3 months, as it is a side project.
thanks, Martin.
I've got to say that lua was easier for me to get working than compiling the haskell would be :)
Yes, but I ran into a few limitations with Lua, one of them probably related to the error you are seeing.
Actually, this looks like it's just a problem with the default.jats
template: there is an extra unclosed <funding-group>
tag.
I'm just speaking from an end user perspective that with lua embedded in pandoc it's remarkably easy to use. As a language it may be difficult to work with.
Thanks for your reply.
The problem with how Lua is implemented here (embedded into Pandoc) is that support for Pandoc templates is a hack, and that there are edge cases that can break this - nested if/then conditions in this case. I need to check whether Pandoc templates support has improved since I wrote this 6 months ago. I will see whether I can work around this as a quick fix, but there are other reasons to move to Haskell in the long run.
Fixed default.jats
, and using Pandoc to parse the template instead of doing this in the custom writer.
Thanks!