You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pandoc (1.19.2.1; debian package "compiled with pandoc-types 1.17.0.5, texmath 0.9.4.1, skylighting 0.3.3.1") parses an indented code block that follows a RawBlock (Format "latex") as a normal paragraph:
with TeX code (RawInline (Format "tex"), e.g. \clearpage) instead of LaTeX code;
when the the indented code block is replaced by a fenced code block, or a block quote, or a list;
when something between the LaTeX code and the indented code block gets parsed, including an HTML comment.
Note that HTML comments are parsed as RawBlock (Format "html"). Thus not any RawBlock immediately preceding an indented code block causes this behaviour.
Ok, it's probably not the most serious bug, and the workaround (fenced code block or HTML comment) is simple. I'm still curious what causes it, though. This is as far as I got, after noticing it in PDF and HTML output.
Here's a longer example:
\hspace
Code block
Another Code block
\clearpage
Code block
Another Code block
\newpage
Code block
Another Code block
\section{Yes}
> Quote
> Another Quote
\newpage
~~~
Code block
~~~
pandoc (1.19.2.1; debian package "compiled with pandoc-types 1.17.0.5, texmath 0.9.4.1, skylighting 0.3.3.1") parses an indented code block that follows a
RawBlock (Format "latex")
as a normal paragraph:This is not the case
RawInline (Format "tex")
, e.g.\clearpage
) instead of LaTeX code;Note that HTML comments are parsed as
RawBlock (Format "html")
. Thus not anyRawBlock
immediately preceding an indented code block causes this behaviour.Ok, it's probably not the most serious bug, and the workaround (fenced code block or HTML comment) is simple. I'm still curious what causes it, though. This is as far as I got, after noticing it in PDF and HTML output.
Here's a longer example:
Parsed:
The text was updated successfully, but these errors were encountered: