Markup format

In my JIRA (6.3) macros and alike constructs are entered as XML.

 

For example here is internal JIRA link:

<ac:link ac:anchor="{my anchor}">
  <ri:page ri:content-title="{my page}"/>
  <ac:plain-text-link-body><![CDATA[{my link text}]]></ac:plain-text-link-body>
</ac:link>

while ToC in a single-column section looks like this:

&lt;ac:structured-macro ac:name="section"&gt;
  &lt;ac:rich-text-body&gt;
    &lt;ac:structured-macro ac:name="column"&gt;
      &lt;ac:rich-text-body&gt;
        &lt;ac:structured-macro ac:name="toc"&gt;
          &lt;ac:parameter ac:name="printable"&gt;false&lt;/ac:parameter&gt;
          &lt;ac:parameter ac:name="maxLevel"&gt;1&lt;/ac:parameter&gt;
          &lt;ac:parameter ac:name="type"&gt;flat&lt;/ac:parameter&gt;
        &lt;/ac:structured-macro&gt;
      &lt;/ac:rich-text-body&gt;
    &lt;/ac:structured-macro&gt;
  &lt;/ac:rich-text-body&gt;
&lt;/ac:structured-macro&gt;

 

Yet when browsing online documentation I see mostly markup using {} syntax. For example:

{local-reporter:prefix:key}
  {xxx-sort:prefix:subkey|order=[ascending, descending]}
  {xxx-filter:prefix:subkey|extra parameters go here}
{local-reporter}

 

Is one of the approaches prefered over the other? Is it a matter of choice or given JIRA version (or setup) enforces one over the other? As I noticed that during typing when I add for example {csv a list shows offering "CSV (Comma Separated Values)" macro and when I choose it XML content is entered instead of the {} format.

1 answer

1 accepted

Hello Adam, Confluence has been through major chances regarding the markup, passing from the wiki markup syntax to a XHTML based markup. Today it is still possible to insert information in Wiki Markup format through the application toolbar, it also has autocomplete features for that syntax - the underlying format is printed into the database as XHTML - reference doc here.

Currently, most of the documentation from the application is recycled for new versions, the team works diligently creating new versions to match the current functionality though you may see portions like the above where functionality is still depicted in wiki markup. We look into having pages like this where both markup examples can be seen.

For additional information and detail on the changes, this is a good blogpost. Hope this can make it clearer.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,990 views 25 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you