Code snippet formatting issue when displayed in an expand containing an "include page"

matt.fox.denver
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2022

Hello,

I have noticed an issue where the formatting of a code snippet is broken when displayed a certain way.

 

Basically: I create a page with code snippets (they display correctly). In a new page, I create an expand and within that I insert an include page containing the above-mentioned code snippets. After I publish the page with the expand containing an include page and open it, open the expand, the formatting of the code snippets on the include page are not formatting correctly. But if I open the published page with the code snippets not inside of an expand>include page, they are formatted correctly.

 

I can't find this issue discussed anywhere, but the behavior is the same on different browsers, etc. Unless I am missing something, it seems code snippet formatting breaks when displayed via an include page within an expand.

 

Any thoughts?

1 answer

0 votes
Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2022

@matt.fox.denver Welcome to Confluence. 

You have discovered that the /expand macro has formatting limitations. You cannot format the text that lives inside the Expand macro beyond rich text. Documentation on this macro is linked below.

https://support.atlassian.com/confluence-cloud/docs/insert-the-expand-macro/

Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2022

@matt.fox.denver checking in to see if this resolved your issue. 

If it has, please mark this answer as accepted so others looking for similar content/issues can easily find it.

Thank you,

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events