My addon accepts a macro body of type rich text.
According to the dynamic content macro guide it suggests that I retrieve the macro body with the REST API.
This returns the macro body in Confluence storage format. Is there a way to retrieve it in rendered HTML?
Or do I need to subsequently call convert content body. Could you help me understand why I get a 403 for this while using AP.require('request'? with “XSRF check failed”.
hi @criley, something like this.
I am transpiling ES6 + async/await here but you can just treat AP.request to return a Promise. You’ll need to load the superbatch css to get your content styled.
Seems the images could not be rendered according to the img html tag. Do you have any idea or is rendering of images with the convert method not possible?
I am facing the same problem with you. I am trying to reach to the HTML tags of the ‘Tabs’ macro of the Confluence.
But when I try to convert the storage format to view format, It only converts the " symbols to " s and doesn’t give me any HTML tags. Here are the postman screenshots. I have also tried with AP.request(). It gives me the same output