diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-11 09:05:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-11 09:08:52 -0800 |
commit | 741b1f7fb4f974a0fc2a9abe410007b27078e129 (patch) | |
tree | 454e89a6197338a112eb1953b80446f1910c150c /test | |
parent | bf2eb4f288df5d5b5e054cdc4ffa3b3c4dd187fa (diff) | |
download | pandoc-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')
-rw-r--r-- | test/command/5878.md | 7 |
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 []]]] +``` |