I'm trying to create the world's most simple user macro in Confluence V5:
The macro type is: Rendered
## @noparams $body
Looks good so far in use...any content I type inside the macro box in the editor displays its text. I can even embed a {pane} macro inside and it renders great!
As soon as I try a {tip} macro, it breaks. It seems to mangle the HTML inside...the span for the tip icon isn't closed and leaks into the rest of the content:
<span class="aui-icon icon-success"> <div class="message-content"> . . . </div> </span>
Any suggestions on how to get this rendering properly? Thanks.
Think I found the answer...it's a bug. A tangled one at that:
https://jira.atlassian.com/browse/CONF-29968
https://jira.atlassian.com/browse/CONF-28726
https://jira.atlassian.com/browse/CONF-30007
Hi David,
For accessing confluence macro's in xhtml, you should use format like this:
<ac:macro ac:name="profile"> <ac:parameter ac:name="user">admin</ac:parameter> </ac:macro>
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But I can't expect end-users to know this...I can't predict what macros users will put inside my user-macro.
Maybe the question I should really be asking is: are other macros supported inside a user macro?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.