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:
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-3625Add API to get default syntax to use for new documents from Velocity XWIKI-5025Use streaming renderer and parser APIs to convert from HTML to wiki syntax XWIKI-9123 REST 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 XWIKI-2568Continue implementing the new Rendering Architecture
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"));
Done