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

Add an API to resolve a rendering Syntax from a Script

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0-milestone-1
    • Fix Version/s: 4.0-milestone-2
    • Component/s: Rendering
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: