aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-03-08 12:23:01 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-03-08 12:23:01 +0100
commit2c67101c7db845201c901775bd4be27b17391856 (patch)
tree54dd88548da0e5402e9c13f293565471e481846f /test
parent2645ce7acacc9050643cad1dbdf0d9759270765c (diff)
downloadpandoc-2c67101c7db845201c901775bd4be27b17391856.tar.gz
Added test case for #3497.
Diffstat (limited to 'test')
-rw-r--r--test/command/3497.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/test/command/3497.md b/test/command/3497.md
new file mode 100644
index 000000000..326817b0d
--- /dev/null
+++ b/test/command/3497.md
@@ -0,0 +1,51 @@
+Escape list markers at beginning of paragraph:
+
+```
+% pandoc -t markdown
+\* ok
+
+\+ ok
+
+\- ok
+
+1\. ok
+
+a\. ok
+^D
+\* ok
+
+\+ ok
+
+\- ok
+
+1\. ok
+
+a\. ok
+```
+
+Here we don't need to escape because there's no space:
+
+```
+% pandoc -t markdown
+\+ok
+
+\-ok
+
+1.ok
+^D
++ok
+
+-ok
+
+1.ok
+```
+
+Also escape things that might become line blocks or tables:
+
+```
+% pandoc -t markdown
+\| hi \|
+^D
+\| hi |
+```
+