aboutsummaryrefslogtreecommitdiff
path: root/test/command/5708.md
diff options
context:
space:
mode:
authordespresc <christian.j.j.despres@gmail.com>2020-04-04 16:35:42 -0400
committerdespresc <christian.j.j.despres@gmail.com>2020-04-15 23:03:22 -0400
commit4e34d366df31937cdc69b6b366355f10a84c16b2 (patch)
tree844503b0f59439acaec5d2f8e2f016e2eb1d214c /test/command/5708.md
parentf8ce38975b547fe7fc8c12ccee3a940b35d8b9cf (diff)
downloadpandoc-4e34d366df31937cdc69b6b366355f10a84c16b2.tar.gz
Adapt to the newest Table type, fix some previous adaptation issues
- Writers.Native is now adapted to the new Table type. - Inline captions should now be conditionally wrapped in a Plain, not a Para block. - The toLegacyTable function now lives in Writers.Shared.
Diffstat (limited to 'test/command/5708.md')
-rw-r--r--test/command/5708.md26
1 files changed, 16 insertions, 10 deletions
diff --git a/test/command/5708.md b/test/command/5708.md
index f104c30c3..3d437c191 100644
--- a/test/command/5708.md
+++ b/test/command/5708.md
@@ -5,16 +5,22 @@
+--------+----------------+
^D
[Table ("",[],[]) (Caption Nothing
- []) [(AlignDefault,Just 0.125),(AlignDefault,Just 0.2361111111111111)] 0
+ [])
+ [(AlignDefault,ColWidth 0.125)
+ ,(AlignDefault,ColWidth 0.2361111111111111)]
+ (TableHead ("",[],[])
[Row ("",[],[])
- [Cell ("",[],[]) Nothing 1 1
+ [Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1})
[]
- ,Cell ("",[],[]) Nothing 1 1
- []]]
- [Row ("",[],[])
- [Cell ("",[],[]) Nothing 1 1
- [Plain [Str "123456"]]
- ,Cell ("",[],[]) Nothing 1 1
- [Plain [Math InlineMath "a + b"]]]]
- []]
+ ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1})
+ []]])
+ [(TableBody ("",[],[]) (RowHeadColumns {getRowHeadColumns = 0})
+ []
+ [Row ("",[],[])
+ [Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1})
+ [Plain [Str "123456"]]
+ ,Cell ("",[],[]) AlignDefault (RowSpan {getRowSpan = 1}) (ColSpan {getColSpan = 1})
+ [Plain [Math InlineMath "a + b"]]]])]
+ (TableFoot ("",[],[])
+ [])]
```