You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

Work In Progress

  • We've started documenting below and will complete the page soon. Let us know in the comments if you have any specific questions on things you'd like to see added as a priority.
  • Things left to do:
    • Document Macro syntax:
      • Content model for <ri:blah> and <ac:blah> elements: what sub-elements are required versus optional (if there are any sub-elements).
      • Set of attributes for <ri:blah> elements: what's required, what's optional, what the allowed values for each attribute are, and what each attribute value will do.
    • (Still considering) Provide an XSD - "an XSD could make on the fly validation for persons having an editor supporting it (E.g. Visual Studio), and since an XSD would be a way to validate your input.

 

  • When upgrading from Confluence 3.x to Confluence 4.x, the underling storage format for your content will be migrated from a wiki markup-based format to a new XHTML-based format.
  • This page highlights the differences between these two type of markup.
  • This page is intented for developers and advanced users who need to interpret and edit the underlying markup for a Confluence page or blog post.

General

Format TypeIn Confluence (3.x)In Confluence 4.0 and aboveWhat you will getNotes
Headings

h1. Heading 1

<h1>Heading 1</h1> 

Heading 1

Underlined in the Documentation Theme
 
h2. Heading 2
<h2>Heading 2</h2> 

Heading 2

Underlined in the Documentation Theme
 
h3. Heading 3
<h3>Heading 3</h3> 

Heading 3

 
 
h4. Heading 4
<h4>Heading 4</h4>

Heading 4

 
 
h5. Heading 5
<h5>Heading 5</h5>
Heading 5
 
 
h6. Heading 6
<h6>Heading 6</h6>
Heading 6
 
Text Effects    
strong/bold
*strong*
<strong>strong text</strong>
strong 
emphasis
_emphasis_
<em>Italics Text</em>
emphasis 
strikethrough
-strikethrough-
<span style="text-decoration: line-through;">strikethrough</span>
strikethrough 
underline
+underline+
<u>underline</u>
underline 
superscript
^superscript^
<sup>superscript</sup>
superscript 
subscript
~subscript~
<sub>subscript</sub>
subscript 
monospace
{{monospaced}}
<code>monospaced</code>
monospaced 
block quotes
bq. block quote

or

{quote} 
block
quote
{quote}
<blockquote><p>block quote</p></blockquote>
block quote
 
text colour
{color:red}red text{color}
<span style="color: rgb(255,0,0);">red text</span>
red text 
Text Breaks    
New paragraph
Paragraph 1
(empty line)
Paragraph 2 
<p>Paragraph 1</p>
<p>Paragraph 2</p>

Paragraph 1

Paragraph 2

 
Line break
Line 1 \\ Line 2
Line 1 <br /> Line 2

Note: Created in the editor using Shift + Return/Enter

Line 1
Line 2 
 
Horizontal Rule----
<hr />

 

— symbol

---
&mdash;

 
– symbol--
&ndash;

 
Lists    
Unordered List - Round Bullets
* Round bullet list item
<ul>
  <li>round bullet list item</li>
</ul>
  • Round bullet list item
 
Unordered List - Square Bullets
- Square bullet list item
<div>
  <ul style="list-style-type: square;">
    <li>square bullet list item</li>
  </ul>
</div> 
  • Square bullet list item
 
Ordered List
# Ordered list item
<ol>
  <li>numbered list item</li>
</ol> 
  1. Ordered list item
 
Links    
Link to another Confluence page
[Link to another Confluence page|Page Title]
<ac:link>
 <ri:page ri:content-title="Page Title" />
 <ac:plain-text-link-body>
   <![CDATA[Link to another Confluence Page]]>
 </ac:plain-text-link-body>
</ac:link> 
Link to another Confluence page 
Link to an attachment
[Link to an attachment^atlassian_logo.gif]
<ac:link>
 <ri:attachment ri:filename="atlassian_logo.gif" />
 <ac:plain-text-link-body>
   <![CDATA[Link to a Confluence Attachment]]>
 </ac:plain-text-link-body>
</ac:link>


Link to an attachment 
Link to an external site
[Atlassian|http://www.atlassian.com/]
<a href="http://www.atlassian.com">Atlassian</a>
Atlassian 
Anchor link
[Anchor Link|pagetitle#anchor]
<ac:link ac:anchor="Anchor Link">
  <ac:plain-text-link-body>
    <![CDATA[Anchor Link]]>
  </ac:plain-text-link-body>
</ac:link>
Anchor Link 
Images    
Attached Image
!atlassian_logo.gif!
<ac:image>
  <ri:attachment ri:filename="atlassian_logo.gif" />
</ac:image>
 
External Image
!http://confluence.atlassian.com/images/logo/confluence_48_trans.png!
<ac:image>
  <ri:url ri:value="http://confluence.atlassian.com/images/logo/confluence_48_trans.png" /></ac:image>
 
Tables    
Two column, two row (top header row)
||Table Heading Cell 1||Table Heading Cell 2||
|Normal Cell 1|Normal Cell 2|
<table>
  <tbody>
    <tr>
      <th>Table Heading Cell 1</th>
      <th>Table Heading Cell 2</th>
    </tr>
    <tr>
      <td>Normal Cell 1</td>
      <td>Normal Cell 2</td>
    </tr>
  </tbody>
</table> 
Table Heading Cell 1Table Heading Cell 2
Normal Cell 1Normal Cell 2
 
Two column, three rows, 2nd and third with merged cells in first rowN/A
<table>
  <tbody>
    <tr>
      <th>Table Heading Cell 1</th>
      <th>Table Heading Cell 2</th>
    </tr>
    <tr>
      <td rowspan="2">Merged Cell</td>
      <td>Normal Cell 1</td>
    </tr>
    <tr>
      <td colspan="1">Normal Cell 2</td>
    </tr>
  </tbody>
</table> 
Table Heading Cell 1Table Heading Cell 2
Merged CellNormal Cell 1
Normal Cell 2
 

Macros

 

  • No labels