Update Content API - insert code `like this` inside Info Panel

Maxime Hussenet June 8, 2023

I'm using the API to update pages, and I would like to include some code (within backquotes `) inside an info panel

I tried using <code>my text</code>

as well as

<ac:structured-macro ac:name="code"><ac:plain-text-body><![CDATA[my text]]></ac:plain-text-body></ac:structured-macro>

But in either case, I see the plain text in my info panel

My info panel has the following format:

<ac:structured-macro ac:name="panel" ac:schema-version="1"><ac:parameter ac:name="panelIcon">:info:</ac:parameter><ac:parameter ac:name="panelIconId">atlassian-info</ac:parameter><ac:parameter ac:name="bgColor">#CCFFFF</ac:parameter><ac:rich-text-body><p><strong>my panel title</strong></p><ul>my panel body</ul></ac:rich-text-body></ac:structured-macro>

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events