From 741b1f7fb4f974a0fc2a9abe410007b27078e129 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 11 Nov 2019 09:05:35 -0800 Subject: 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. --- test/command/5878.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/command/5878.md (limited to 'test/command') 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 []]]] +``` -- cgit v1.2.3