Home/Jira formatting reference
Jira text formatting
Horizontal rule in Jira: ---- wiki markup and ADF rule
A horizontal rule is a full-width divider line. Wiki markup writes it as ---- on its own line, the Cloud editor creates it from --- or *** (per the Atlassian documentation), and ADF stores a rule node with no content. Use it to separate sections of a long description.
Wiki markup
----
Markdown shortcuts in the editor
Per the Atlassian documentation, not tested.
| Type | What happens |
|---|---|
--- | Converts to a horizontal rule as you type, per the Atlassian documentation. |
*** | Converts to a horizontal rule as you type, per the Atlassian documentation. |
Cmd/Ctrl + Shift + - | Keyboard shortcut for Divider, per the Atlassian documentation. |
Stored as ADF (REST API v3)
The ADF document Jira Cloud stores for ADF:{"content": [{"type": "rule"}], "type": "doc", "version": 1}:
{
"type": "doc",
"version": 1,
"content": [
{
"type": "rule"
}
]
}
Examples
Wiki markup (API v2)
----The standard form: four dashes alone on a line gives an hr element.
Rendered by Jira (HTML)
<hr />Back to wiki after the round trip
----Sent to Jira Cloud on .
Wiki markup (API v2)
-----A longer run of dashes still gives a rule, and it is written back as exactly four.
Rendered by Jira (HTML)
<hr />Back to wiki after the round trip
----Sent to Jira Cloud on .
Wiki markup (API v2)
text ---- textFour dashes inside a line of text are not a rule. They stay as characters.
Rendered by Jira (HTML)
<p>text ---- text</p>Back to wiki after the round trip
text ---- textSent to Jira Cloud on .
Wiki markup (API v2)
---Three dashes alone are not a rule in wiki markup. They are the em dash shortcut.
Rendered by Jira (HTML)
<p>—</p>Back to wiki after the round trip
—Sent to Jira Cloud on .
ADF (API v3)
{"content": [{"type": "rule"}], "type": "doc", "version": 1}The rule node written directly as ADF. It needs no attributes and no content.
Rendered by Jira (HTML)
<hr />Back to wiki after the round trip
----Sent to Jira Cloud on .
What changes in conversion
- ---- and the ADF rule node convert both ways without loss.
- Five dashes on their own line are stored as one rule and read back as ----.
- ---- inside a line of text stays text in both formats.
- In ADF, rule is a top-level block node, so it cannot sit inside a paragraph.
Pitfalls
---is a rule in the editor but an em dash in wiki markup. Use four dashes in API calls.- The rule must be on its own line.
text ---- textis not converted.