diff options
| author | Albert Krewinkel <[email protected]> | 2022-03-29 17:50:55 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-29 08:50:55 -0700 |
| commit | 7a7e1b2b70d7f22ad7ca2c6aea56055804a1cdb2 (patch) | |
| tree | 41bab83740ab373d2ce9c62072cfa951dc9aa8a1 /test/rst-reader.native | |
| parent | cd931e55b685a0f3526781fda724bbd7dbd0a908 (diff) | |
RST reader: wrap math in Span to preserve attributes (#7998)
Math elements with a name, classes, or other fields are wrapped in a
`Span` with these attributes.
Diffstat (limited to 'test/rst-reader.native')
| -rw-r--r-- | test/rst-reader.native | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/rst-reader.native b/test/rst-reader.native index f5c60cd4f..51bb940bf 100644 --- a/test/rst-reader.native +++ b/test/rst-reader.native @@ -1556,10 +1556,13 @@ Pandoc , Math DisplayMath "\\alpha = \\beta" ] , Para - [ Math - DisplayMath - "\\begin{aligned}\nE &= mc^2\\\\\nF &= \\pi E\n\\end{aligned}" - , Math DisplayMath "F &= \\gamma \\alpha^2" + [ Span + ( "" , [] , [ ( "label" , "hithere" ) , ( "nowrap" , "" ) ] ) + [ 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" ] |
