aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-06-13 23:14:51 -0600
committerJohn MacFarlane <[email protected]>2022-06-13 23:14:51 -0600
commitb263f383040618ff991912512ccd396b83d43da5 (patch)
treead2022cf9fba5acff67ba31b4c58b5c6a277ffb8 /test/command
parent54b20e5733d7ae283170faf66ca48ff71abcfdbc (diff)
LaTeX reader: improve mathEnvWith.
When converting e.g. an align environment to an aligned environment inside a Math element, we need to include a newline before the `\end{aligned}`, since the previous line might end in a comment. Closes #8122.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/3113.md2
-rw-r--r--test/command/macros.md3
2 files changed, 3 insertions, 2 deletions
diff --git a/test/command/3113.md b/test/command/3113.md
index 7452995b5..7746ec14f 100644
--- a/test/command/3113.md
+++ b/test/command/3113.md
@@ -11,7 +11,7 @@ E&=&F
[ Para
[ Math
DisplayMath
- "\\begin{aligned}\nA&=&B,\\\\\nC&=&D,\\\\\n%\\end{eqnarray}\n%\\begin{eqnarray}\nE&=&F\\end{aligned}"
+ "\\begin{aligned}\nA&=&B,\\\\\nC&=&D,\\\\\n%\\end{eqnarray}\n%\\begin{eqnarray}\nE&=&F\n\\end{aligned}"
]
]
```
diff --git a/test/command/macros.md b/test/command/macros.md
index 9f7a0f9d3..86f10ea1b 100644
--- a/test/command/macros.md
+++ b/test/command/macros.md
@@ -62,7 +62,8 @@ x &= y\\
\(5-67\)
\[\begin{aligned}
-x &= y\\\end{aligned}\]
+x &= y\\
+\end{aligned}\]
\emph{hi}