aboutsummaryrefslogtreecommitdiff
path: root/test/command/2649.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-03-28 08:59:34 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-03-28 08:59:34 -0700
commit5a79948e0c689ffbcb91355a5575bc46464fa8d2 (patch)
treebbdbb98e98ee13c104db2a4f39e1ce338e25be26 /test/command/2649.md
parentd0a7dbd948351a6622a4d670bfbb8ef622e6278f (diff)
downloadpandoc-5a79948e0c689ffbcb91355a5575bc46464fa8d2.tar.gz
Mediawiki reader: improve table parsing.
This fixes detection of table attributes and also handles `!` characters in cells. Closes #4508.
Diffstat (limited to 'test/command/2649.md')
-rw-r--r--test/command/2649.md20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/command/2649.md b/test/command/2649.md
index 8f594cfe1..52ae16ce4 100644
--- a/test/command/2649.md
+++ b/test/command/2649.md
@@ -67,7 +67,8 @@
! Aantal
|-
| 1
-|align=left| {{FR-VLAG}} [[Sébastien Loeb]] | 78
+|align=left| {{FR-VLAG}} [[Sébastien Loeb]]
+| 78
|-
| 2
|align=left| {{FR-VLAG}} '''[[Sébastien Ogier]]'''
@@ -79,24 +80,25 @@
|}
^D
<table>
+<thead>
+<tr class="header">
+<th><p>Plaats</p></th>
+<th><p>Rijder</p></th>
+<th><p>Aantal</p></th>
+</tr>
+</thead>
<tbody>
<tr class="odd">
-<td></td>
-<td><p>Plaats</p></td>
-<td><p>Rijder</p></td>
-<td><p>Aantal</p></td>
-</tr>
-<tr class="even">
<td><p>1</p></td>
<td><p><a href="Sébastien_Loeb" title="wikilink">Sébastien Loeb</a></p></td>
<td><p>78</p></td>
</tr>
-<tr class="odd">
+<tr class="even">
<td><p>2</p></td>
<td><p><strong><a href="Sébastien_Ogier" title="wikilink">Sébastien Ogier</a></strong></p></td>
<td><p>38</p></td>
</tr>
-<tr class="even">
+<tr class="odd">
<td><p>10</p></td>
<td><p><a href="Hannu_Mikkola" title="wikilink">Hannu Mikkola</a></p></td>
<td><p>18</p></td>