Home/Jira formatting reference
Jira text formatting
Strikethrough in Jira: -text- in wiki, Markdown and ADF
Hyphens around a word draw a line through it in Jira wiki markup. Jira Cloud stores it as the ADF strike mark. The new editor offers a Markdown double-tilde shortcut, which the wiki parser does not read the same way.
Wiki markup
-strikethrough-
Markdown shortcuts in the editor
Per the Atlassian documentation, not tested.
| Type | What happens |
|---|---|
~~text~~ | Converts to strikethrough as you type, per the Atlassian documentation. The keyboard shortcut is Cmd+Shift+S (Ctrl+Shift+S on Windows). |
Stored as ADF (REST API v3)
The ADF document Jira Cloud stores for -strikethrough-:
{
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "strikethrough",
"marks": [
{
"type": "strike"
}
]
}
]
}
]
}
Examples
Wiki markup (API v2)
-strikethrough-The basic form, rendered as a del element.
Rendered by Jira (HTML)
<p><del>strikethrough</del></p>Back to wiki after the round trip
-strikethrough-Sent to Jira Cloud on .
Wiki markup (API v2)
price -10- 8 euroShow an old value next to the new one, for example in a change comment.
Rendered by Jira (HTML)
<p>price <del>10</del> 8 euro</p>Back to wiki after the round trip
price -10- 8 euroSent to Jira Cloud on .
Wiki markup (API v2)
2-3-4 and a-b-cHyphens between characters. Nothing is struck through, so ranges and compound words are safe.
Rendered by Jira (HTML)
<p>2-3-4 and a-b-c</p>Back to wiki after the round trip
2-3-4 and a-b-cSent to Jira Cloud on .
Wiki markup (API v2)
*bold -strike- inside*A struck word inside bold text, to see how Jira stores the overlap.
Rendered by Jira (HTML)
<p><b>bold <del>strike</del> inside</b></p>Back to wiki after the round trip
*bold* *-strike-* *inside*Sent to Jira Cloud on .
Wiki markup (API v2)
~~tilde strike~~The Markdown strikethrough form sent as wiki. It becomes a subscript between two literal tildes.
Rendered by Jira (HTML)
<p>~<sub>tilde strike</sub>~</p>Back to wiki after the round trip
~~tilde strike~~Sent to Jira Cloud on .
What changes in conversion
- A struck word round-trips unchanged between wiki and ADF. The stored node is text with a strike mark.
- When strike sits inside bold, ADF splits the line into three text nodes, so the wiki written back has three bold groups and the middle one is
*-strike-*. - The Markdown
~~text~~shortcut works only in the editor. As wiki input it is read as subscript, and the ADF stores the tildes as ordinary text.
Pitfalls
- A hyphen between characters is just a hyphen. The line only appears when the hyphens sit at the edges of the struck text.
- A hyphen followed by a space at the start of a line is a bullet list item, not the start of a strike.