diff options
| author | John MacFarlane <[email protected]> | 2025-05-11 15:51:04 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-05-11 17:38:18 -0700 |
| commit | bfcff3eb993d66446d5599efbf6db07880f9d41a (patch) | |
| tree | 9d477b64a022ca0b5e0068cf8090dc65d7ebcc6b /test/command | |
| parent | 1ce62c95f298812ff463ea05ecbe8c53ae375430 (diff) | |
Org reader: change handling of inline TeX.
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.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/10836.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/10836.md b/test/command/10836.md new file mode 100644 index 000000000..864361b5c --- /dev/null +++ b/test/command/10836.md @@ -0,0 +1,12 @@ +``` +% 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. +``` |
