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

This widget could not be displayed.

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.

This widget could not be displayed.


Can this be done with the HTML Macro as well?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday 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...

290 views 2 4
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