git.iko.soy/typeable/pandoc
on master help sign in
Added test case for #3497.
commit2c67101c7db845201c901775bd4be27b17391856 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 8 Mar 2017, 12:23 (10 years ago) parent2645ce7
1 file changed+51
test/command/3497.md+51
test/command/3497.mdnew file+51
@@ -0,0 +1,51 @@
1+Escape list markers at beginning of paragraph:
2+
3+```
4+% pandoc -t markdown
5+\* ok
6+
7+\+ ok
8+
9+\- ok
10+
11+1\. ok
12+
13+a\. ok
14+^D
15+\* ok
16+
17+\+ ok
18+
19+\- ok
20+
21+1\. ok
22+
23+a\. ok
24+```
25+
26+Here we don't need to escape because there's no space:
27+
28+```
29+% pandoc -t markdown
30+\+ok
31+
32+\-ok
33+
34+1.ok
35+^D
36++ok
37+
38+-ok
39+
40+1.ok
41+```
42+
43+Also escape things that might become line blocks or tables:
44+
45+```
46+% pandoc -t markdown
47+\| hi \|
48+^D
49+\| hi |
50+```
51+