Nested Expand Macro with Wiki-Markup Edited

Hello,

Im trying to create nested Content with the Expand Macro. To do that i create an Expand Macro with title and Content in another Expand Macro (Also with title). Im doing this with REST by using the Wiki-Markup format.

Whenever I insert the Mark-up it wont get nested cause of the "closing" Expands. They are building their own Macro. Anyone know has an idea if there is something like a workaround?

image.png

{Expand: Stage One}
Content of Stage One.
{Expand: Stage Two}
Content of Stage Two.
{Expand}
{Expand}

 Is this expected behaviour or a bug?

Edit: Found the Report on Jira.. Still looking for a workaround.

1 answer

1 accepted

1 vote
Accepted answer
Thomas Schlegel Community Champion Aug 02, 2017

Hi Katja,

yes, this is the behaviour with wiki markup. You can't nest two macros with the same name since there is no opening and ending tag.

This blog post describes a workaround with a custom expand macro for every sub-expand: 

https://ffeathers.wordpress.com/2011/08/20/nested-expand-macros-in-confluence-wiki/

It works, since every stage has its own macro. I didn't try that, but it is definitely worth a try, if you need it.  

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

959 views 14 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you