What is the encoding algorithm of macro on Confluence

0 votes
asked Mar 5 in Question / help by Tuyen

Hi there,

I'm following this document https://plantuml.com/text-encoding to encode my markup diagram in order to show it on Confluence.

The encoded text can render correctly via plantuml server at http://www.plantuml.com/plantuml/uml/Syp9J4vLqBLJSCfFib9mB2t9ICqhoKnEBCdCprC8IYqiJIqkuGBAAUW2rO0LOr5LN92VLvpA1G00

But it's not display on Confluence when I put the encoded text to the macro like this

<ac:structured-macro ac:name="plantumlcloud">
    <ac:parameter ac:name="filename">test.svg</ac:parameter>
    <ac:parameter ac:name="data">Syp9J4vLqBLJSCfFib9mB2t9ICqhoKnEBCdCprC8IYqiJIqkuGBAAUW2rO0LOr5LN92VLvpA1G00</ac:parameter>
    <ac:parameter ac:name="compressed">true</ac:parameter>
    <ac:parameter ac:name="revision">1</ac:parameter>

I checked the browser console then seeing the error on pako.min.js: [Simple-XDM] Cannot read properties of null (reading 'length') TypeError: Cannot read properties of null (reading 'length') 

Error image

I guest that the encoded text is not expected format for Confluence macro to deflate and render.

Can someone help me with the correct way to encode the text to display it with macro on Confluence?

Thank you.

1 Answer

0 votes
answered Mar 5 by plantuml (289,760 points)
Since the Confluence plugin is not developed by our team, we are not able to help you.

You should probably ask the same question to the confluence team.

Sorry about that!