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:
      XWIKI-8864Add an API for resolving a string Space Reference to the Model Script Service
      XWIKI-4858Add API to find the syntax of the executing document from scripts
      XWIKI-4854Introduce new Rendering Script Service for accessing the Rendering APIs from scripts
      XWIKI-4127Improve Rendering API
      XWIKI-10002New Crypto Script API
      XWIKI-5025Use streaming renderer and parser APIs to convert from HTML to wiki syntax
      XWIKI-3625Add API to get default syntax to use for new documents from Velocity
      XWIKI-9123REST API select format HTML
      XWIKI-4542MissingPropertyException: Groovy script works with XWiki Syntax 2.0 but not with XWiki Syntax 1.0
      XWIKI-2128Wiki rendered syntax simplification part 2

      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

        Hide
        Vincent Massol added a comment -

        Done

        Show
        Vincent Massol added a comment - Done

          People

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

            Dates

            • Created:
              Updated:
              Resolved: