Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

There is a bug when embedding the page that has code


I'm reorganising the Confluence space and embed some pages to another ones. To do so, I'm using Macro "Include Page" and it embeds all the attachments/tables/images/... well, besides sections with code.

In case where there is code in the page being embedded, the code gets embedded, but looks awful and doesn't meet the standards. You can see it yourselves on the screen shot provided.

Let me know how to fix it :)


embedded page with code.png

1 answer

0 votes
Shannon S Atlassian Team May 23, 2022

Hello Veronika,

Welcome to Atlassian Community! It's nice to have you join us.

The code macro doesn't display in the correct format from the Include page macro, and we have an open request to fix that:

  • CONFCLOUD-71644  Code Snippet macro does not display the same styling on using Include page macro

The workaround suggests using. the Excerpt and Excerpt include macros instead. Can you try that and let me know if you have different results?

Take care,

Shannon | Atlassian Community Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

773 views 5 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you