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

Parsing and rendering a styled external link in xwiki/2.0 syntax produces invalid content

    XMLWordPrintable

Details

    • Unknown

    Description

      This is a bug I encountered some times ago while working on the mediawiki importer. The problem is explained in the followinf (failing) test case:

      .#-----------------------------------------------------
      .input|xwiki/2.0
      .#-----------------------------------------------------
      **http://www.foo.com**
      .#-----------------------------------------------------
      .expect|xwiki/2.0
      .#-----------------------------------------------------
      **http://www.foo.com**
      

      The workaround I did was to edit the wikimodel parser's URI grammar. Specifically I modified the following line in common-tokens.tmpl:

      | <#URI_SUB_DELIMS: [ "!", "$", "&", "'", "(", ")", "*", "+", /*",",*/ ";", "=" ]>
      

      And replaced it with:

      | <#URI_SUB_DELIMS: [ "!", "$", "&", "(", ")", "+", /*",",*/ ";", "=" ]>
      

      It's not a fix but it worked in my case

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: