aboutsummaryrefslogtreecommitdiff
path: root/test/command/5304.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-02-15 22:33:30 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-02-15 22:34:32 -0800
commitd7d1c9c8e41851e06c1224ae018f740c915a3600 (patch)
tree243b5ec095eacfc31b0ed32f605c4e091e0aee86 /test/command/5304.md
parentfb5bafd13e9fc890a134c93dd1aa381409a4058d (diff)
downloadpandoc-d7d1c9c8e41851e06c1224ae018f740c915a3600.tar.gz
Markdown reader: fix bug parsing fenced code blocks.
Previously parsing would break if the code block contained a string of backticks of sufficient length followed by something other than end of line. Closes #5304.
Diffstat (limited to 'test/command/5304.md')
-rw-r--r--test/command/5304.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/command/5304.md b/test/command/5304.md
new file mode 100644
index 000000000..62b2b9ddd
--- /dev/null
+++ b/test/command/5304.md
@@ -0,0 +1,24 @@
+````
+% pandoc -f markdown -t markdown
+``` {.markdown}
+`«sträng»`
+
+`` «sträng» ``
+
+``` «sträng» ```
+
+````«sträng»````
+...
+```
+^D
+``` {.markdown}
+`«sträng»`
+
+`` «sträng» ``
+
+``` «sträng» ```
+
+````«sträng»````
+...
+```
+````