Skip to content

Pandoc 3.1.1: Simple Jira Markup Wrongly Parsed as "Phantom Image" Reference (Mislead by Exklamation Mark in Input?) #8680

@gohrner

Description

@gohrner

Explain the problem.

pandoc -f jira -t markdown jira.txt

with the following jira.txt:

*ACHTUNG:* Die autogenerierten Klassen dürfen NICHT durch Automatismen verändert werden! Sie sind vor Umformatierungen bereits geschützt durch den Kommentar {{// @formatter:off}} am Anfang jeder Datei. Diesen Kommentar muss die Formatter-Einstellung *zwingend* berücksichtigen!

produces the following output:

**ACHTUNG:** Die autogenerierten Klassen dürfen NICHT durch Automatismen
verändert
werden![]( Sie sind vor Umformatierungen bereits geschützt durch den Kommentar {{// @formatter:off}} am Anfang jeder Datei. Diesen Kommentar muss die Formatter-Einstellung *zwingend* berücksichtigen)

In pandoc's "native" output, the wrong part looks as follows:

    , Image
        ( "" , [] , [] )
        []
        ( " Sie sind vor Umformatierungen bereits gesch\252tzt durch den Kommentar {{// @formatter:off}} am Anfang jeder Datei. Diesen Kommentar muss die Formatter-Einstellung *zwingend* ber\252cksichtigen"
        , ""
        )

Note that Pandoc seems to have "invented" an "empty" image, where it took the rest of the line as the empty image's URL.
Also, the inline code / fixed-width section // @formatter:off was not parsed at all (which however may be a side effect of this part of the line being taken as an URL while it is none).

Pandoc version?
pandoc 3.1.1
Features: +server +lua
Scripting engine: Lua 5.4

Debian GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions