aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-21 23:39:58 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-21 23:41:32 +0100
commit5d71e37f261ec2a6b48e95542aeb29228afa7c4b (patch)
treedba7bc6ae1ccfd4355e23844ff7dfc16eacdec8b /test
parentf90b82d3d9e53ff005911252d1a9242bba0d5272 (diff)
downloadpandoc-5d71e37f261ec2a6b48e95542aeb29228afa7c4b.tar.gz
MediaWiki reader: ensure that list starts begin at left margin.
Including when they're in tables or other list items. Closes #2606.
Diffstat (limited to 'test')
-rw-r--r--test/command/2606.md58
1 files changed, 58 insertions, 0 deletions
diff --git a/test/command/2606.md b/test/command/2606.md
new file mode 100644
index 000000000..53eaa0d06
--- /dev/null
+++ b/test/command/2606.md
@@ -0,0 +1,58 @@
+```
+% pandoc -f mediawiki -t html5
+{|
+| * hello
+|}
+^D
+<table>
+<tbody>
+<tr class="odd">
+<td><p>* hello</p></td>
+</tr>
+</tbody>
+</table>
+```
+
+```
+% pandoc -f mediawiki -t html5
+{|
+|
+* hello
+|}
+^D
+<table>
+<tbody>
+<tr class="odd">
+<td><ul>
+<li>hello</li>
+</ul></td>
+</tr>
+</tbody>
+</table>
+```
+
+```
+% pandoc -f mediawiki -t html5
+{|
+|
+ * hello
+|}
+^D
+<table>
+<tbody>
+<tr class="odd">
+<td><p><code>* hello</code></p></td>
+</tr>
+</tbody>
+</table>
+```
+
+```
+% pandoc -f mediawiki -t html5
+* * hi
+^D
+<ul>
+<li>* hi</li>
+</ul>
+```
+