mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 20:07:22 +00:00
bfcff3eb99
Previously inline TeX was handled in a way that was different from org's own export, and that could lead to information loss. This was particularly noticeable for inline math environments such as `equation`. Previously, an `equation` environment starting at the beginning of a line would create a raw block, splitting up the paragraph containing it (see #10836). On the other hand, an `equation` environment not at the beginning of a line would be turned into regular inline elements representing the math. (This would cause the equation number to go missing and in some cases degrade the math formatting.) Now, we parse all of these as raw "latex" inlines, which will be omitted when converting to formats other than LaTeX (and other formats like pandoc's Markdown that allow raw LaTex). Closes #10836.
220 B
220 B
% pandoc -f org -t latex
Some equation here
\begin{equation}
x = y
\end{equation}
where $x$ is something important.
^D
Some equation here \begin{equation}
x = y
\end{equation} where \(x\) is something important.