Open stephanlachnit opened 2 years ago
Looks like you're missing the closing fence on that last item.
Looks like you're missing the closing fence on that last item.
Only missed the last line when copying it here - sorry. In the MWE I run it was there.
Using pandoc -t native
, you can see that the code block in the last item is being parsed as inline code. That's the root of the problem:
, [ Para
[ Str "This"
, Space
, Str "is"
, Space
, Str "a"
, Space
, Str "code"
, Space
, Str "in"
, Space
, Str "a"
, Space
, Code ( "" , [] , [] ) "-"
, Space
, Str "list:"
, SoftBreak
, Code ( "" , [] , [] ) "math a^2+b^2=c^2"
]
]
Why is that happening, though? I need to investigate.
The -f commonmark
(or -f gfm
) parsers handle this correctly, by the way.
Explain the problem.
mwe.md
:This is code in
-
list:This is a code in a
-
list:pandoc-gitlab-math.lua
:Running:
Produces:
The issue here is that the third CodeBlock is not converted properly by the Lua script.
Pandoc version? Debian Sid, pandoc version: