diff options
| author | TuongNM <[email protected]> | 2025-09-02 13:12:17 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-09-02 13:12:34 +0200 |
| commit | 3e2c029a77397e50e5725218b1c26c21bb7b11cd (patch) | |
| tree | 699e5f369304a21c0d9e6ef651f04a83c2b5cacf /test/command | |
| parent | f3c7a931b4bd6a536ff27abc3bc41a09a41d15b3 (diff) | |
RST Reader: Support multiple header rows (#11057)
[API change] Text.Pandoc.Parsing: `tableWith` and `tableWith'` now
return a list of lists of Blocks, rather than a list of Blocks, for the
header rows, allowing for multiple header rows.
Closes #10338.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/10338-rst-multiple-header-rows.md | 155 |
1 files changed, 155 insertions, 0 deletions
diff --git a/test/command/10338-rst-multiple-header-rows.md b/test/command/10338-rst-multiple-header-rows.md new file mode 100644 index 000000000..5bfd05f82 --- /dev/null +++ b/test/command/10338-rst-multiple-header-rows.md @@ -0,0 +1,155 @@ +``` +% pandoc -f rst -t native +Multiple Headers +================ + +========== ========= +Header A1 Header A2 +Header B1 Header B2 +========== ========= +body a1 body a1 +body b1 body b2 +========== ========= + +Headless +======== + +========== ========= +body a1 body a1 +body b1 body b2 +========== ========= + +End Section +=========== +^D +[ Header + 1 + ( "multiple-headers" , [] , [] ) + [ Str "Multiple" , Space , Str "Headers" ] +, Table + ( "" , [] , [] ) + (Caption Nothing []) + [ ( AlignDefault , ColWidthDefault ) + , ( AlignDefault , ColWidthDefault ) + ] + (TableHead + ( "" , [] , [] ) + [ Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "Header" , Space , Str "A1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "Header" , Space , Str "A2" ] ] + ] + , Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "Header" , Space , Str "B1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "Header" , Space , Str "B2" ] ] + ] + ]) + [ TableBody + ( "" , [] , [] ) + (RowHeadColumns 0) + [] + [ Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "a1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "a1" ] ] + ] + , Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "b1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "b2" ] ] + ] + ] + ] + (TableFoot ( "" , [] , [] ) []) +, Header 1 ( "headless" , [] , [] ) [ Str "Headless" ] +, Table + ( "" , [] , [] ) + (Caption Nothing []) + [ ( AlignDefault , ColWidthDefault ) + , ( AlignDefault , ColWidthDefault ) + ] + (TableHead ( "" , [] , [] ) []) + [ TableBody + ( "" , [] , [] ) + (RowHeadColumns 0) + [] + [ Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "a1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "a1" ] ] + ] + , Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "b1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "body" , Space , Str "b2" ] ] + ] + ] + ] + (TableFoot ( "" , [] , [] ) []) +, Header + 1 + ( "end-section" , [] , [] ) + [ Str "End" , Space , Str "Section" ] +] +``` |
