Re: [xwiki-users] Parsing XWiki Syntax inside Macro
Hi Stefan, On Mar 27, 2012, at 9:24 AM, Stefan Bernsdorf wrote:
Hi Vincent,
thanks for replying. There is a typo in your example. You have to remove .getChildren() in the code.
List <Block> blocks = this.contentParser.parse(content, context, true, context.isInline()).getChildren();
Thanks but it looks correct. parse() will return a XDOM and execute() needs a list of Blocks so you need to get them with XDOM.getChildren(). Thanks -Vincent
Am 27.03.2012 08:49, schrieb Vincent Massol:
Hi Stefan
On Mar 26, 2012, at 11:43 PM, GrĂ¼ner Heinrich wrote:
Hi, i want the content of my Macro to be parsed as XWiki Syntax. How would that be possible. I cant find no parsing Method in AbstractMacro. When I want to extend AbstractScriptMacro then the initializing of the macro fails.
See http://rendering.xwiki.org/xwiki/bin/view/Main/ExtendingMacro#HParsingMacroC...
Thanks -Vincent
participants (1)
-
Vincent Massol