aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-10-21 11:44:12 -0700
committerJohn MacFarlane <[email protected]>2022-10-21 11:44:12 -0700
commit400d4e1387d9bc26a3c2a58e2a6c34cde80d2018 (patch)
tree220e2120b153541fa2cd5d750a86744d56f7e1fd /test/command
parente243cd696f97410ba7d25ffd2800936c16d160bf (diff)
LaTeX reader: parse short table caption.
See jgm/pandoc-types#103. This is not too useful yet, because writers don't do anything with the short caption.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/short-caption.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/command/short-caption.md b/test/command/short-caption.md
new file mode 100644
index 000000000..0fb71290f
--- /dev/null
+++ b/test/command/short-caption.md
@@ -0,0 +1,42 @@
+```
+% 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 ( "" , [] , [] ) [])
+]
+```