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
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,768 views 26 10
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