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

Using Convert content body endpoint doesn't render image caption with Dynamic Content Macro

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      When using the /wiki/rest/api/contentbody/convert/styled_view endpoint https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body/#api-wiki-rest-api-contentbody-convert-to-post, image captions are not included in the rendered HTML.

      Steps to Reproduce

      1. Use a dynamicContentMacro with a body.
      2. In Confluence edit mode, add a image with a caption to the macro’s body.
      3. Save the page.
      4. The dynamicContentMacro should use window.AP.confluence.getMacroBody to receive the body as storage format and convert it using the mentioned endpoint `/wiki/rest/api/contentbody/convert/styled_view`
      5. The macroRenderedOutput.value will contain the image, but not the caption

      Expected Results

      Render the image with caption.

      Actual Results

      It doesn't render the caption.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              d6427b6fb657 Guilherme Bueno (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: