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

Wiki link label containing a wiki image, a nested wiki link or a code span with a pipe is cut at the first pipe in CommonMark Markdown 1.2

    XMLWordPrintable

Details

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

    Description

      In markdown/1.2, the wiki link label ends at the first pipe, even when that pipe belongs to an element located in the label:

      [[a ![[x|y.png]] c|Page]]
      [[`a|b`|Page]]
      [[a [[x|y]] b|Page]]
      

      Expected: links to Page whose label contains the image, the code span or the text.
      Actual: the label is cut at the first pipe and the reference Page is lost.
      Note: content generated by the markdown/1.2 renderer writes the pipes located in labels as an HTML entity, so this only concerns hand-written content.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: