@ Override public String execute ( Map < String , String > parameters , String body , ConversionContext context ) throws MacroExecutionException { try { String xhtmlRendered = gpUtil . getWikiStyleRenderer ( ) . convertWikiToXHtml ( context . getPageContext ( ) , body ) ; LOGGER . trace ( "rendering : \n - source \n {} \n - output \n {}" , body , xhtmlRendered ) ; return xhtmlRendered ; } catch ( Exception e ) { return getErrorView ( "greenpepper.info.macroid" , e . getMessage ( ) ) ; } }
Confluence 4 +