2017-08-17 21:07:07 +02:00
|
|
|
```
|
|
|
|
% pandoc -f html -t native
|
|
|
|
<table>
|
|
|
|
<caption>Demonstration of simple table syntax.</caption>
|
|
|
|
<thead>
|
|
|
|
<tr class="header">
|
|
|
|
<th align="right">Right</th>
|
|
|
|
<th align="left">Left</th>
|
|
|
|
<th align="center">Center</th>
|
|
|
|
<th>Default</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td align="right">12</td>
|
|
|
|
<td align="left">12</td>
|
|
|
|
<td align="center">12</td>
|
|
|
|
<td>12</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Table
|
2021-09-29 06:17:53 +02:00
|
|
|
( "" , [] , [] )
|
|
|
|
(Caption
|
|
|
|
Nothing
|
|
|
|
[ Plain
|
|
|
|
[ Str "Demonstration"
|
|
|
|
, Space
|
|
|
|
, Str "of"
|
|
|
|
, Space
|
|
|
|
, Str "simple"
|
|
|
|
, Space
|
|
|
|
, Str "table"
|
|
|
|
, Space
|
|
|
|
, Str "syntax."
|
|
|
|
]
|
|
|
|
])
|
|
|
|
[ ( AlignRight , ColWidthDefault )
|
|
|
|
, ( AlignLeft , ColWidthDefault )
|
|
|
|
, ( AlignCenter , ColWidthDefault )
|
|
|
|
, ( AlignDefault , ColWidthDefault )
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2021-09-29 06:17:53 +02:00
|
|
|
(TableHead
|
|
|
|
( "" , [] , [] )
|
|
|
|
[ Row
|
|
|
|
( "" , [ "header" ] , [] )
|
|
|
|
[ Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignRight
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "Right" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignLeft
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "Left" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignCenter
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "Center" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignDefault
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "Default" ] ]
|
|
|
|
]
|
|
|
|
])
|
|
|
|
[ TableBody
|
|
|
|
( "" , [] , [] )
|
|
|
|
(RowHeadColumns 0)
|
|
|
|
[]
|
|
|
|
[ Row
|
|
|
|
( "" , [ "odd" ] , [] )
|
|
|
|
[ Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignRight
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignLeft
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignCenter
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignDefault
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2021-09-29 06:17:53 +02:00
|
|
|
(TableFoot ( "" , [] , [] ) [])
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-08-17 21:07:07 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f html -t native
|
|
|
|
<table>
|
|
|
|
<tr class="odd">
|
|
|
|
<td style="text-align: right;">12</td>
|
|
|
|
<td style="text-align:left;">12</td>
|
|
|
|
<td style="text-align: center">12</td>
|
|
|
|
<td style="text-align: right;">12</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Table
|
2021-09-29 06:17:53 +02:00
|
|
|
( "" , [] , [] )
|
|
|
|
(Caption Nothing [])
|
|
|
|
[ ( AlignRight , ColWidthDefault )
|
|
|
|
, ( AlignLeft , ColWidthDefault )
|
|
|
|
, ( AlignCenter , ColWidthDefault )
|
|
|
|
, ( AlignRight , ColWidthDefault )
|
|
|
|
]
|
|
|
|
(TableHead ( "" , [] , [] ) [])
|
|
|
|
[ TableBody
|
|
|
|
( "" , [] , [] )
|
|
|
|
(RowHeadColumns 0)
|
|
|
|
[]
|
|
|
|
[ Row
|
|
|
|
( "" , [ "odd" ] , [] )
|
|
|
|
[ Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignRight
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignLeft
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignCenter
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignRight
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "12" ] ]
|
|
|
|
]
|
|
|
|
]
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2021-09-29 06:17:53 +02:00
|
|
|
(TableFoot ( "" , [] , [] ) [])
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-08-17 21:07:07 +02:00
|
|
|
```
|
|
|
|
|