Formatting the title when using the expand macro - On Demand

Is it possible to apply any type of formatting to the expand texte when using the expand macro? I came across a discussion thread where the same question has been asked, but has not been answered as yet.

Is it possible to get ANY sort of formatting options in 4.0? Markup doesn't work inside the macro editor, and if you try to use this macro by inserting markup, it just converts to the macro that disallows any formatting. The most frustrating of these is the inability to change the text indicating the toggle. You can't make it a heading, cannot change the colour. Additionally, there are zero parameters for making hidden sections unique, no parameter for having it be visible or cloaked initially.

Is there something I'm missing on how to actually use any other parameter other than "put text here" on this?

2 answers

Hi Vicki,

It's many years later now, but I thought it might still help you or others who stumble upon this question.

The expand macro is limited with regards to styling, so we’ve created a Heading Expand macro as part of our toolbox of useful Confluence Cloud macros. It lets you show and hide content under any heading style and also if it should be expanded or collapsed by default.

Try it here:

Keen to know if it helps you out smile


I was setting up my page with Expand Heading, but unfortunately I couldn't indent the code blocks & nested expands. I can manually indent all other content except for those and possibly other block-like macros. Would be great if you fix it!

Sure, we'll take a look and see what we can do!

Would you be able to get a screenshot of issue? It'll help us identify what might be causing it.


Can this be done with the HTML Macro as well?

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,694 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