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

This widget could not be displayed.
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 Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

569 views 7 6
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