XWiki Platform
  1. XWiki Platform
  2. XWIKI-7620

Add an API to resolve a rendering Syntax from a Script

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor 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"));
      

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: