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

Support image parameters when linking to an image

    XMLWordPrintable

Details

    • image,rendering,links
    • Unit

    Description

      Consider the following xhtml input to the xhtml->xwiki/2.0 parser :

      <html><p><!--startwikilink:http://xwiki.org--><span class="wikiexternallink"><a href="http://xwiki.org"><!--startimage:attach.png--><img src="/xwiki/bin/download/currentdoc/attach.png" class="wikimodel-freestanding" alt="attach.png" height="100" width="100"/><!--stopimage--></a></span><!--stopwikilink--></p></html>
      

      The corresponding xwiki/2,0 output should be :

      [[image:attach.png>>http://xwiki.org||height="100" width="100"]]
      

      But the actual output seems to be missing the height & width attributes from the xwiki output.

      Here is a complete rendering test case for this scenario:

      .#-----------------------------------------------------
      .input|xhtml
      .#-----------------------------------------------------
      <p><!--startwikilink:http://xwiki.org--><span class="wikiexternallink"><a href="http://xwiki.org"><!--startimage:attach.png--><img src="/xwiki/bin/download/currentdoc/attach.png" class="wikimodel-freestanding" alt="attach.png" height="100" width="100"/><!--stopimage--></a></span><!--stopwikilink--></p>
      .#-----------------------------------------------------
      .expect|xwiki
      .#-----------------------------------------------------
      [[image:attach.png>>http://xwiki.org||height="100" width="100"]]
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: