Uploaded image for project: 'Markdown Syntax'
  1. Markdown Syntax
  2. MARKDOWN-118

Pipe or closing brackets in a wiki link reference or wiki image alternative text break the link or image in CommonMark Markdown 1.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 8.10.0
    • 8.9.1
    • markdown/1.2
    • None
    • Unknown

    Description

      When rendering the following xwiki/2.1 content to markdown/1.2 and parsing the result back:

      [[image:a.png||alt="x~|y"]]

      Expected: an image of a.png with the alternative text "x|y".
      Actual: it's rendered as

      ![[x|y|a.png]]

      and read back with the alternative text "x" and the reference "y|a.png". Similarly, a wiki link reference containing a pipe or "]]" is truncated or keeps backslashes when read back.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: