aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-11 09:05:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-11 09:08:52 -0800
commit741b1f7fb4f974a0fc2a9abe410007b27078e129 (patch)
tree454e89a6197338a112eb1953b80446f1910c150c /test/command
parentbf2eb4f288df5d5b5e054cdc4ffa3b3c4dd187fa (diff)
downloadpandoc-741b1f7fb4f974a0fc2a9abe410007b27078e129.tar.gz
Markdown reader: fix small super/subscript issue.
Superscripts and subscripts cannot contain spaces, but newlines were previously allowed (unintentionally). This led to bad interactions in some cases with footnotes. E.g. ``` foo^[note] bar^[note] ``` With this change newlines are also not allowed inside super/subscripts. Closes #5878.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5878.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command/5878.md b/test/command/5878.md
new file mode 100644
index 000000000..9e0f6bde3
--- /dev/null
+++ b/test/command/5878.md
@@ -0,0 +1,7 @@
+```
+% pandoc -t native
+Zozime^[],
+Synésius^[]
+^D
+[Para [Str "Zozime",Note [Para []],Str ",",SoftBreak,Str "Syn\233sius",Note [Para []]]]
+```