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

Inline parser support is needed

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • Rendering in the platform
    • None
    • None

    Description

      Right now in some places in the new rendering we use the Parsers to parse some inline text (i.e. text inside a top level element: paragraph, list, etc).

      The problem is that WikiModel parsers don't currently support inline parsing and thus when you pass text to them they consider the text to be part of a full document.

      In practice we need that inline parser to ignore any top level element and only parse inline elements (formatting, word, space, special symbols, etc.

      This is needed in the following locations:

      • XHTML Renderer to parse the link "label"
      • Velocity macro when it's used inline

      So for example if you write:

      This shouldn't be a {{velocity}}= header{{/velocity}}.
      

      You'll get a header. I think that instead you should get the text: "This shouldn't be a = header"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: