diff options
| author | Brian Leung <[email protected]> | 2022-05-02 08:25:57 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-02 17:25:57 +0200 |
| commit | 67daf96bdd519b1e709d6ed2534d06203967bf97 (patch) | |
| tree | 94a3ace6f960e26e772c00437f3ff9af7112f2b3 /test/command | |
| parent | 843eeae13d4cb2a7e8c1ed0d151a691c83adf72f (diff) | |
Org reader: allow attrs for Org tables. (#8049)
Tables with attributes are no longer wrapped in Div elements;
attributes are added directly to the table element.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/3706.md | 135 | ||||
| -rw-r--r-- | test/command/6441.md | 22 |
2 files changed, 88 insertions, 69 deletions
diff --git a/test/command/3706.md b/test/command/3706.md index fcd95dfdd..025de1364 100644 --- a/test/command/3706.md +++ b/test/command/3706.md @@ -15,85 +15,82 @@ Results marker can be hidden in block attributes (#3706) | 2 | La | | 3 | La | ^D -[ Div +[ Table ( "tab" , [] , [] ) - [ Table - ( "" , [] , [] ) - (Caption Nothing [ Plain [ Str "Lalelu." ] ]) - [ ( AlignDefault , ColWidthDefault ) - , ( AlignDefault , ColWidthDefault ) - ] - (TableHead + (Caption Nothing [ Plain [ Str "Lalelu." ] ]) + [ ( AlignDefault , ColWidthDefault ) + , ( AlignDefault , ColWidthDefault ) + ] + (TableHead + ( "" , [] , [] ) + [ Row ( "" , [] , [] ) - [ Row + [ Cell ( "" , [] , [] ) - [ Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "Id" ] ] - , Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "Desc" ] ] - ] - ]) - [ TableBody + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "Id" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "Desc" ] ] + ] + ]) + [ TableBody + ( "" , [] , [] ) + (RowHeadColumns 0) + [] + [ Row + ( "" , [] , [] ) + [ Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "1" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "La" ] ] + ] + , Row ( "" , [] , [] ) - (RowHeadColumns 0) - [] - [ Row + [ Cell ( "" , [] , [] ) - [ Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "1" ] ] - , Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "La" ] ] - ] - , Row + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "2" ] ] + , Cell + ( "" , [] , [] ) + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "La" ] ] + ] + , Row + ( "" , [] , [] ) + [ Cell ( "" , [] , [] ) - [ Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "2" ] ] - , Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "La" ] ] - ] - , Row + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "3" ] ] + , Cell ( "" , [] , [] ) - [ Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "3" ] ] - , Cell - ( "" , [] , [] ) - AlignDefault - (RowSpan 1) - (ColSpan 1) - [ Plain [ Str "La" ] ] - ] + AlignDefault + (RowSpan 1) + (ColSpan 1) + [ Plain [ Str "La" ] ] ] ] - (TableFoot ( "" , [] , [] ) []) ] + (TableFoot ( "" , [] , [] ) []) ] ``` diff --git a/test/command/6441.md b/test/command/6441.md new file mode 100644 index 000000000..d0488767c --- /dev/null +++ b/test/command/6441.md @@ -0,0 +1,22 @@ +``` +% pandoc -f org -t html +#+ATTR_HTML: :class table-dark +| h1 | h2 | +|----|----| +| c1 | c2 | +^D +<table class="table-dark"> +<thead> +<tr class="header"> +<th>h1</th> +<th>h2</th> +</tr> +</thead> +<tbody> +<tr class="odd"> +<td>c1</td> +<td>c2</td> +</tr> +</tbody> +</table> +``` |
