Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-71644

Code Snippet macro does not display the same styling on using Include page macro

      Summary:
      Include page macro where page created with the new editor with code snippet macro does not render the same styling when referenced in another page using Include page macro.

      It's not the same in the classic Editor

      Steps to Reproduce

      • Create a page with Code Snippet macro.
      • Create another page with Include page macro.
      • Add a page with Code Snippet macro created on the first page in Include page macro

      Expected Result
      It should show a code snippet macro with the same styling (for eg numbered lines)

      Actual Result
      New editor page where code snippet is used


      The page where Include macro is used



      Old Editor where Code Block macro is used

      Page with Include macro to show page created on the first step

      Additional macros affected

      The issue also affects these macros.

      1. Panels (info, success, note, warning, success, error)
      2. Tables
      3. All third-party macros that use body type rich-text.

       

      Workaround

      As shared in the comments, a workaround to this issue is to use the excerpt macro instead then render the content in another page by using the excerpt include macro instead of using the page include macro

        1. inspect-page.png
          189 kB
          Shannon S
        2. page-with-include-macro.png
          38 kB
          Shannon S
        3. page-with-snippet.png
          37 kB
          Shannon S
        4. screenshot-1.png
          277 kB
          Trupti Das
        5. screenshot-2.png
          180 kB
          Trupti Das
        6. screenshot-3.png
          240 kB
          Trupti Das
        7. screenshot-4.png
          177 kB
          Trupti Das
        8. screenshot-5.png
          139 kB
          Trupti Das
        9. screenshot-6.png
          144 kB
          Trupti Das

              b53e59e1a9c1 Rachel Yu
              b0b849db5d18 Trupti Das
              Affected customers:
              58 This affects my team
              Watchers:
              54 Start watching this issue

                Created:
                Updated: