mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 03:17:16 +00:00
cf760c7f66
We do not allow inline notes to be followed by `(` or `[`. Otherwise, we parse inline notes before superscripts. This fixes #8652. Also, the sub/superscript parsers have been adjusted so that they really exclude unescaped spaces (as they did not before, when the spaces occurred in nested inlines). See #5878 for comment.
384 B
384 B
% pandoc -t native
My text^[My note]isnot^[Text]
^D
[ Para
[ Str "My"
, Space
, Str "text"
, Note [ Para [ Str "My" , Space , Str "note" ] ]
, Str "isnot"
, Note [ Para [ Str "Text" ] ]
]
]
% pandoc -t native
^[note1]test^[note2]
^D
[ Para
[ Note [ Para [ Str "note1" ] ]
, Str "test"
, Note [ Para [ Str "note2" ] ]
]
]