Hide code block macro captions

Comments

2 comments

  • Avatar
    Roman Serazhiev

    Hi Annica,

    Thanks for reaching out.

    Are you using Scroll Title macro in combination with Code Block? Would it be possible to send me the storage format of the Confluence page so I can reproduce this behaviour? You can either send it here or to support@k15t.com.

    Looking forward to hearing from you.

    Cheers,
    Roman

  • Avatar
    Annica Waltersson

    Hi Roman,

    I have tried using the Code Block macro on its own as well as in combination with the Scroll Title macro.

    See the storage format of a Confluence page containing different tryouts of the Code Block and Scroll Title macros below.

    Cheers,

    Annica

     

    <p>Code block (without title)</p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="cc80c3d9-2a90-4b56-99a5-9297dee01531"><ac:parameter ac:name="language">bash</ac:parameter><ac:plain-text-body><![CDATA[sudo unzip -q /home/sm/name.zip -d /opt/]]></ac:plain-text-body></ac:structured-macro>
    <p><br /></p>
    <p>Code block (with title <strong>Run as sm</strong>)</p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="9b468f4d-d0cf-4cf1-bfc6-04a51ff78467"><ac:parameter ac:name="language">bash</ac:parameter><ac:parameter ac:name="title">Run as sm</ac:parameter><ac:plain-text-body><![CDATA[sudo unzip -q /home/sm/name.zip -d /opt/]]></ac:plain-text-body></ac:structured-macro>
    <p><br /></p>
    <p>Scroll Title with title <strong>Run as sm</strong> (containing Code Block without title)</p><ac:structured-macro ac:name="scroll-title" ac:schema-version="1" ac:macro-id="86ae96ef-a87b-4c88-9c93-6afc787039c2"><ac:parameter ac:name="title">Run as sm</ac:parameter><ac:rich-text-body><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="c14dd1dc-5887-4546-a184-93ab295cc895"><ac:parameter ac:name="language">bash</ac:parameter><ac:plain-text-body><![CDATA[sudo unzip -q /home/sm/name.zip -d /opt/]]></ac:plain-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>
    <p><br /></p>
    <p>Scroll Title with title <strong>Run as sm</strong> (containing Code Block with title <strong>Run as sm</strong>)</p><ac:structured-macro ac:name="scroll-title" ac:schema-version="1" ac:macro-id="ec9dc95d-5069-4262-8468-620da4e6aa1e"><ac:parameter ac:name="title">Run as sm</ac:parameter><ac:rich-text-body><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="d9cbb38a-0908-4a0c-a526-92dd241f4157"><ac:parameter ac:name="language">bash</ac:parameter><ac:parameter ac:name="title">Run as sm</ac:parameter><ac:plain-text-body><![CDATA[sudo unzip -q /home/sm/name.zip -d /opt/]]></ac:plain-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>

Please sign in to leave a comment.

Powered by Zendesk