aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-01-14 15:10:13 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-01-14 15:11:11 -0800
commit615a99c2c20782daae5de38854025e2d40d85f29 (patch)
tree20c5948daabb6e241633c7536c22109e57969826 /test/command
parentd9584d73f94501787026c57b77d217e51f21505d (diff)
downloadpandoc-615a99c2c20782daae5de38854025e2d40d85f29.tar.gz
RST reader: add aligned environment when needed in math.
rst2latex.py uses an align* environment for math in `.. math::` blocks, so this math may contain line breaks. If it does, we put the math in an `aligned` environment to simulate rst2latex.py's behavior. Closes #4254.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/4254.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/command/4254.md b/test/command/4254.md
new file mode 100644
index 000000000..e4cc5c6b0
--- /dev/null
+++ b/test/command/4254.md
@@ -0,0 +1,12 @@
+```
+% pandoc -f rst -t latex
+.. math::
+
+ x &= y\\
+ y &= z
+^D
+\[\begin{aligned}
+x &= y\\
+y &= z
+\end{aligned}\]
+```