aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-09 11:34:50 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-09 23:22:44 -0500
commit1592d3882142bbb938608e04d179f148453d93bb (patch)
tree9e41307dd56f64f26470e0eea0c4ffd04934de7f /test/command
parentf72d7636557b01812dcd13826b7697c3ceb20a76 (diff)
downloadpandoc-1592d3882142bbb938608e04d179f148453d93bb.tar.gz
Allow fenced code blocks to be indented 1-3 spaces.
This brings our handling of them into alignment with CommonMark's. Closes #??.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/indented-fences.md20
1 files changed, 20 insertions, 0 deletions
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"]
+`````