summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-17 12:07:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-17 12:08:32 -0700
commitb1f6fb4af5e6df40fe72d6224512f60be082a8cd (patch)
tree42d9dd9286a691c30e56283d45c35c123675727a /test
parentb9b35059f612d93d3bd559116dc18d68d3430500 (diff)
HTML reader: support column alignments.
These can be set either with a `width` attribute or with `text-width` in a `style` attribute. Closes #1881.
Diffstat (limited to 'test')
-rw-r--r--test/command/1881.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/command/1881.md b/test/command/1881.md
new file mode 100644
index 000000000..0d43997e2
--- /dev/null
+++ b/test/command/1881.md
@@ -0,0 +1,52 @@
+```
+% 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
+[Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."] [AlignRight,AlignLeft,AlignCenter,AlignDefault] [0.0,0.0,0.0,0.0]
+ [[Plain [Str "Right"]]
+ ,[Plain [Str "Left"]]
+ ,[Plain [Str "Center"]]
+ ,[Plain [Str "Default"]]]
+ [[[Plain [Str "12"]]
+ ,[Plain [Str "12"]]
+ ,[Plain [Str "12"]]
+ ,[Plain [Str "12"]]]]]
+```
+
+```
+% 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
+[Table [] [AlignRight,AlignLeft,AlignCenter,AlignRight] [0.0,0.0,0.0,0.0]
+ []
+ [[[Plain [Str "12"]]
+ ,[Plain [Str "12"]]
+ ,[Plain [Str "12"]]
+ ,[Plain [Str "12"]]]]]
+```
+