diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-01-14 15:10:13 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-01-14 15:11:11 -0800 |
commit | 615a99c2c20782daae5de38854025e2d40d85f29 (patch) | |
tree | 20c5948daabb6e241633c7536c22109e57969826 /test/rst-reader.native | |
parent | d9584d73f94501787026c57b77d217e51f21505d (diff) | |
download | pandoc-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/rst-reader.native')
-rw-r--r-- | test/rst-reader.native | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rst-reader.native b/test/rst-reader.native index 724c23b03..b0e51bd3f 100644 --- a/test/rst-reader.native +++ b/test/rst-reader.native @@ -317,7 +317,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa ,Para [Math DisplayMath "E=mc^2"] ,Para [Math DisplayMath "E = mc^2"] ,Para [Math DisplayMath "E = mc^2",Math DisplayMath "\\alpha = \\beta"] -,Para [Math DisplayMath "E &= mc^2\\\\\nF &= \\pi E",Math DisplayMath "F &= \\gamma \\alpha^2"] +,Para [Math DisplayMath "\\begin{aligned}\nE &= mc^2\\\\\nF &= \\pi E\n\\end{aligned}",Math DisplayMath "F &= \\gamma \\alpha^2"] ,Para [Str "All",Space,Str "done."] ,Header 1 ("default-role",[],[]) [Str "Default-Role"] ,Para [Str "Try",Space,Str "changing",Space,Str "the",Space,Str "default",Space,Str "role",Space,Str "to",Space,Str "a",Space,Str "few",Space,Str "different",Space,Str "things."] |