Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4672

Freestanding image/links should be protected in xwiki/2.0 renderer when before or after word that could break it when parsed

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      XWiki 2.0 input:

      |=Alice|=Bob
      |before image:xwiki.png|abc
      |image:xwiki.png after|abc
      

      XHTML output:

      <table>
        <tr><th>Alice</th><th>Bob</th></tr>
        <tr>
          <td>before <img src="/xwiki/bin/download/Sandbox/FF/xwiki.png%7Cabc" class="wikimodel-freestanding" alt="xwiki.png|abc"/></td>
        </tr>
        <tr>
          <td><img src="/xwiki/bin/download/Sandbox/FF/xwiki.png" class="wikimodel-freestanding" alt="xwiki.png"/>&nbsp;after</td>
          <td>abc</td>
        </tr>
      </table>
      

      The workaround is to write:

      [[image:xwiki.png]]
      

      Note: This is a regression. It used to work when I wrote the WYSIWYG user guide ( http://platform.xwiki.org/xwiki/bin/view/Features/WysiwygEditor#HToolbar ).

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: