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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

478 views 19 9
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