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

An exclamation mark located just before a link turns the link into an image when rendering to CommonMark Markdown 1.2

    XMLWordPrintable

Details

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

    Description

      When rendering to markdown/1.2 some text ending with an exclamation mark directly followed by a link, the exclamation mark is escaped but the link is still read back as an image.

      Steps to reproduce:

      1. Render the following xwiki/2.1 content to markdown/1.2:
        a![[Page]]
      2. The output is
        a\![[Page]]
      3. Parse it back as markdown/1.2

      Expected: the text "a!" followed by a link to Page.
      Actual: the text "a!" followed by an image of Page (the backslash escape doesn't prevent the image syntax from being recognized).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: