2017-03-08 12:23:01 +01:00
|
|
|
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
|
2017-09-08 07:10:13 +02:00
|
|
|
\| hi \|
|
2017-03-08 12:23:01 +01:00
|
|
|
```
|
|
|
|
|