mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-04 06:35:47 +00:00
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.
29 lines
384 B
Markdown
29 lines
384 B
Markdown
```
|
|
% 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" ] ]
|
|
]
|
|
]
|
|
|
|
```
|