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

XMLWordPrintable

      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

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

              Created:
              Updated: