From 2c67101c7db845201c901775bd4be27b17391856 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 8 Mar 2017 12:23:01 +0100 Subject: Added test case for #3497. --- test/command/3497.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 test/command/3497.md (limited to 'test') 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 | +``` + -- cgit v1.2.3