From 615a99c2c20782daae5de38854025e2d40d85f29 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 14 Jan 2018 15:10:13 -0800 Subject: 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. --- test/command/4254.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/command/4254.md (limited to 'test/command') 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}\] +``` -- cgit v1.2.3