... |
... |
@@ -16,11 +16,10 @@ |
16 |
16 |
} |
17 |
17 |
html << "</div>" |
18 |
18 |
|
19 |
|
- def rendered = services.rendering.parse(html.toString(), "xwiki/2.1") |
20 |
|
- wikimacro.result = rendered?.children ?: [] |
|
19 |
+ def rendered = services.rendering.parse(html.toString(), xcontext.syntax) |
|
20 |
+ wikimacro.result = rendered.children |
21 |
21 |
} else { |
22 |
|
- def fallback = services.rendering.parse("<em>No images found.</em>", "xwiki/2.1") |
23 |
|
- wikimacro.result = fallback?.children ?: [] |
|
22 |
+ wikimacro.result = services.rendering.parse("<em>No images found.</em>", xcontext.syntax).children |
24 |
24 |
} |
25 |
25 |
{{/groovy}} |
26 |
26 |
|