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

Add an API to resolve a rendering Syntax from a Script

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 4.0-milestone-2
    • 4.0-milestone-1
    • Rendering
    • None
    • Unit
    • Unknown

    Description

      Right now the solution is to use the "syntaxFactory" variable in the velocity context but that's bad and should be deprecated.

      Add:

      Assert.assertEquals(Syntax.XWIKI_2_1, renderingScriptService.resolveSyntax("xwiki/2.1"));
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: