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
          inspect-page.png
          189 kB
        2. page-with-include-macro.png
          page-with-include-macro.png
          38 kB
        3. page-with-snippet.png
          page-with-snippet.png
          37 kB
        4. screenshot-1.png
          screenshot-1.png
          277 kB
        5. screenshot-2.png
          screenshot-2.png
          180 kB
        6. screenshot-3.png
          screenshot-3.png
          240 kB
        7. screenshot-4.png
          screenshot-4.png
          177 kB
        8. screenshot-5.png
          screenshot-5.png
          139 kB
        9. screenshot-6.png
          screenshot-6.png
          144 kB

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

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

                Created:
                Updated: