From 1592d3882142bbb938608e04d179f148453d93bb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 9 Nov 2017 11:34:50 -0800 Subject: Allow fenced code blocks to be indented 1-3 spaces. This brings our handling of them into alignment with CommonMark's. Closes #??. --- test/command/indented-fences.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/command/indented-fences.md (limited to 'test/command') diff --git a/test/command/indented-fences.md b/test/command/indented-fences.md new file mode 100644 index 000000000..eb3b78212 --- /dev/null +++ b/test/command/indented-fences.md @@ -0,0 +1,20 @@ +````` +% pandoc -t native + ```haskell + let x = y +in y + ``` +^D +[CodeBlock ("",["haskell"],[]) "let x = y\nin y"] +````` +````` +% pandoc -t native + ~~~ {.haskell} + let x = y + in y + +y + + y +~~~ +^D +[CodeBlock ("",["haskell"],[]) " let x = y\nin y +\ny +\ny"] +````` -- cgit v1.2.3