Going Stellar

Home/Jira formatting reference

Jira text formatting

Markdown in Jira Cloud: editor shortcuts and API behaviour

The new Jira editor converts some Markdown to formatted content as you type. It is an input shortcut: Jira stores ADF, not Markdown. Sent through REST API v2, Markdown is just wiki text, and most of it is shown literally or reads as something else.

Wiki markup

There is no wiki markup for this element.

Markdown shortcuts in the editor

Per the Atlassian documentation, not tested.

TypeWhat happens
**text** or __text__Bold, as you type, per the Atlassian documentation.
*text* or _text_Italics, per the Atlassian documentation.
~~text~~Strikethrough, per the Atlassian documentation.
`text`Monospace, per the Atlassian documentation.
[link](www.atlassian.com)A link, per the Atlassian documentation.
![alt text](http://example.com/image/example.png)An image from a URL, per the Atlassian documentation.
# to ######Heading levels 1 to 6, per the Atlassian documentation.
*, - or 1.Bulleted and numbered lists. The documentation says that ** will not convert to a nested list.
[]An action item, per the Atlassian documentation. Press Space after the brackets.
> , --- or ***Block quote and horizontal rule, per the Atlassian documentation.
```A code block, per the Atlassian documentation.

Examples

Wiki markup (API v2)

**double star**

Markdown bold sent as wiki. The wiki parser reads the inner star pair as bold and leaves one star on each side.

Rendered by Jira (HTML)

<p>*<b>double star</b>*</p>

Back to wiki after the round trip

**double star**

Sent to Jira Cloud on .

Wiki markup (API v2)

~~tilde strike~~

Markdown strikethrough sent as wiki. The inner tilde pair is subscript in wiki, so the text is lowered and the tildes remain.

Rendered by Jira (HTML)

<p>~<sub>tilde strike</sub>~</p>

Back to wiki after the round trip

~~tilde strike~~

Sent to Jira Cloud on .

Wiki markup (API v2)

# markdown heading

A Markdown heading sent as wiki. In wiki the hash starts a numbered list, so it becomes a list item.

Rendered by Jira (HTML)

<ol>
	<li>markdown heading</li>
</ol>

Back to wiki after the round trip

# markdown heading

Sent to Jira Cloud on .

Wiki markup (API v2)

[link](https://example.com)

A Markdown link sent as wiki. The bracketed word is flagged as an error and the URL is linked on its own.

Rendered by Jira (HTML)

<p><span class="error">&#91;link&#93;</span>(<a href="https://example.com" class="external-link" rel="nofollow noreferrer">https://example.com</a>)</p>

Back to wiki after the round trip

[link]([https://example.com|https://example.com/])

Sent to Jira Cloud on .

Wiki markup (API v2)

```
markdown fence
```

A fenced block sent as wiki. The fence is plain text; no code block is made.

Rendered by Jira (HTML)

<p>```<br/>
markdown fence<br/>
```</p>

Back to wiki after the round trip

```
markdown fence
```

Sent to Jira Cloud on .

Wiki markup (API v2)

| Markdown | Header |
|---|---|
| a | b |

A Markdown table sent as wiki. It becomes a table of normal cells, and the separator row turns into a row of dashes.

Rendered by Jira (HTML)

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<td class='confluenceTd'> Markdown </td>
<td class='confluenceTd'> Header </td>
</tr>
<tr>
<td class='confluenceTd'>&#8212;</td>
<td class='confluenceTd'>&#8212;</td>
</tr>
<tr>
<td class='confluenceTd'> a </td>
<td class='confluenceTd'> b </td>
</tr>
</tbody></table>
</div>

Back to wiki after the round trip

|Markdown|Header|
|---|---|
|a|b|

Sent to Jira Cloud on .

Wiki markup (API v2)

> markdown quote

A Markdown quote sent as wiki. It stays as text with the angle bracket.

Rendered by Jira (HTML)

<p>&gt; markdown quote</p>

Back to wiki after the round trip

> markdown quote

Sent to Jira Cloud on .

What changes in conversion

  • Per the documentation, you can paste Markdown into the editor and it converts as you type, but nothing in the editor exports Markdown. What Jira keeps is ADF.
  • Through REST API v2 the text is parsed as wiki. Characters that mean the same in both languages (backticks aside, the underscore pair for italics) work; the rest does not.
  • Wiki syntax and Markdown syntax overlap in confusing ways: a single star pair is bold in wiki and italics in Markdown, and a hash starts a numbered list in wiki and a heading in Markdown.
  • Markdown text stays as plain characters in the stored ADF. A link comes back from the round trip with a doubled wiki link inside the brackets.

Pitfalls

  • If a script posts comments through v2, write wiki or send ADF through v3. Markdown will not be converted.
  • *text* is bold in wiki and italics in Markdown. Check which one your target field expects.
  • The Markdown rows above come from the Atlassian documentation. They were not typed into the editor in these checks.
  • Sent as wiki through REST API v2, a hash line becomes a numbered list item and a fence is plain text, so a heading or code block written in Markdown does not arrive as one.

Questions and answers

Can Jira export a description as Markdown?

Not according to the documentation. You can copy raw Markdown into the editor, but you cannot convert content from it into raw Markdown.

Sources

  1. Markdown and keyboard shortcuts (Atlassian Support, Jira Cloud)
  2. Jira Cloud REST API v2: issue comments
  3. Text Formatting Notation Help (Jira, in-product help)

Markdown version · All formatting pages