mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-05 15:15:41 +00:00
See jgm/pandoc-types#103. This is not too useful yet, because writers don't do anything with the short caption.
43 lines
961 B
Markdown
43 lines
961 B
Markdown
```
|
|
% pandoc -f latex -t native
|
|
\begin{table}
|
|
\caption[short caption]{long caption}
|
|
\begin{tabular}{ll}
|
|
hi & hi \\
|
|
\end{tabular}
|
|
\end{table}
|
|
^D
|
|
[ Table
|
|
( "" , [] , [] )
|
|
(Caption
|
|
(Just [ Str "short" , Space , Str "caption" ])
|
|
[ Plain [ Str "long" , Space , Str "caption" ] ])
|
|
[ ( AlignLeft , ColWidthDefault )
|
|
, ( AlignLeft , ColWidthDefault )
|
|
]
|
|
(TableHead ( "" , [] , [] ) [])
|
|
[ TableBody
|
|
( "" , [] , [] )
|
|
(RowHeadColumns 0)
|
|
[]
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "hi" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "hi" ] ]
|
|
]
|
|
]
|
|
]
|
|
(TableFoot ( "" , [] , [] ) [])
|
|
]
|
|
```
|