Files
John MacFarlane cf760c7f66 Markdown reader: Improve superscript/subscript/inline note parsing.
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.
2025-09-16 12:46:25 +02:00

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" ] ]
    ]
]