Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-699

Image syntax should no be triggered when the reference is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 14.10.3
    • Syntax - xwiki/2.1
    • None
    • Unknown

    Description

      Consider the following XWiki 2.1 syntax:

      The process is described by the following image:
      
      image:attach:process.png
      

      which is rendered as:

      <p>The process is described by the following <img src="/xwiki/bin/download/My/Page/WebHome/filename" class="wikimodel-freestanding wikigeneratedid" id="I" alt="filename"></p>
      <p><img src="/xwiki/bin/download/My/Page/WebHome/process.png" class="wikimodel-freestanding wikigeneratedid" id="Iprocess.png" alt="process.png"></p>
      

      The problem is that "image:" at the end of the line (which is not uncommon) is considered as image syntax with empty reference. This is certainly unexpected.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: