Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Add a Collapsible Section in Confluence?

Ramesh Maduranga November 1, 2024

Hello,  I’m looking to add collapsible sections to my Confluence pages. I tried using the following tags in a Markdown file:

<details> <summary>Click here to expand…</summary> </details>

However, this doesn’t seem to work once I push the Markdown file to Confluence. It displays as plain text instead of creating a collapsible section.

Is there a recommended way to create collapsible sections in Confluence, or any workaround for achieving this functionality? Any advice would be greatly appreciated!

Note: I'm trying to achieve this by updating a .md file and pushing it to Confluence using a Python script.

1 answer

1 vote
Evgenii
Community Champion
November 1, 2024

Hi, @Ramesh Maduranga 

Welcome to Atlassian Community!

You can use expand macro for this.

Screenshot_26.pngScreenshot_27.pngScreenshot_28.png

Ramesh Maduranga November 1, 2024

@Evgenii Thanks for the suggestion.  Just wondering is there any way to achieve this directly in Markdown by embedding the expand macro?

Evgenii
Community Champion
November 2, 2024

Hi, @Ramesh Maduranga 

If in a few words, then the answer to your question is: no.

According to Atlassian Markdown syntax guide documentation, you can use only limited Markdown for formatting text.

In the doc above you can find the syntax you can use in your markdown.

Ramesh Maduranga December 2, 2024

@Evgenii Thank you! This would be a fantastic feature to have, and I’d love to see it considered.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events