---
title: "Jira code blocks and formatting: what works in Cloud"
description: "Jira Cloud's editor turns Markdown into formatting as you type, and three backticks into a code block. It does not work the other way, and not everything in Markdown converts. Here is what does, what does not, and what to do with diagrams."
date: 2026-11-29
lang: en
canonical: https://goingstellar.ro/methods/jira-code-blocks-and-formatting/
author: Going Stellar
publisher: GOING STELLAR S.R.L.
topic: Jira / Formatting / Code blocks
license: CC BY 4.0
alternate_ro: https://goingstellar.ro/ro/metode/blocuri-de-cod-si-formatare-in-jira/
---

# Jira code blocks and formatting: what works in Cloud

*Jira Cloud's editor turns Markdown into formatting as you type, and three backticks into a code block. It does not work the other way, and not everything in Markdown converts. Here is what does, what does not, and what to do with diagrams.*

> Jira · Formatting · Code blocks · 2026-11-29 · https://goingstellar.ro/methods/jira-code-blocks-and-formatting/

## Key points

- Jira Cloud stores descriptions and comments as a document (ADF); Markdown is a way of typing into the editor, not the stored format.
- Three backticks, the / menu or ⌘/Ctrl + Shift + M give you a code block; the block's language drives syntax highlighting.
- Most Markdown converts as you type, but nested lists come from Tab, tables come from /table, and nothing exports back to Markdown.
- REST API version 3 takes ADF for descriptions, comments and multi-line fields; a script needs a codeBlock node for a real code block.
- In wiki markup, {code} without a language means Java; use {noformat} for plain text. Markdown fences are not read there.
- Jira does not draw Mermaid; attach an exported image with the source, or keep the diagram on a Confluence page.

## One editor, stored as a document, not as text

Descriptions, comments and other rich text fields in Jira Cloud use the Atlassian editor. What you type is stored in the Atlassian Document Format, ADF: a JSON document made of nodes such as paragraphs, headings, lists, tables and code blocks. Atlassian's developer documentation gives comments and multi-line custom fields as examples of text stored this way.

That explains most surprises. Markdown is a way of typing into the editor, not the format Jira keeps. Atlassian's own page on the subject says it plainly: you can copy raw Markdown into the editor, but you can't convert content from it into raw Markdown.

## Code blocks

Three ways give you a code block. Type three backticks (`````) at the start of a line. Type `/` and choose code from the quick-insert menu. Or use the keyboard shortcut that Atlassian lists for code: **⌘ + Shift + M** on a Mac, **Ctrl + Shift + M** on Windows.

A code block keeps a language, and the language drives syntax highlighting. Atlassian's ADF reference says highlighting uses the languages supported by the Prism library, and that a block set to plain text, or to a language that is not supported, shows as plain monospaced text. If your code is not coloured, check the language on the block before anything else.

For a word or a short value inside a sentence, use single backticks: ``text`` becomes monospace in the line, without a separate block.

## Which Markdown converts as you type

Atlassian's list for the editor covers: ****bold**** or **__bold__**, ***italics*** or **_italics_**, **~~strikethrough~~**, **`monospace`**, links as `[text](url)`, images from a URL as `![alt](url)`, headings from `#` to `######`, lists with `*`, `-`, `1.` or `2)`, action items with `[]` followed by a space, quotes with `&gt;`, a horizontal rule with `---` or `***`, emoji with `:name:`, and code blocks with `````.

Pasting works too. A short bug report written in Markdown like this one comes out as a heading, a numbered list with bold and italic words, and a code block:

```markdown
## Steps to reproduce
1. Open the **Billing** page
2. Select *Export*

```
GET /api/invoices?month=2026-11
```
```

Three things to know. Nested lists do not come from typing `**`; indent list items with Tab and outdent with Shift + Tab. Tables are not in the Markdown list; insert one with `/` and choose a table. And there is no export back to Markdown, so if you need the text elsewhere, keep the Markdown source where it was written.

If you have a whole Markdown file, such as a README, to move into Jira or Confluence, or wiki markup to bring back to Markdown, our free Markdown to Jira and Confluence converter does it in the browser, tables included.

## If a script writes the text, and wiki markup

Automation scripts and integrations meet the same rule through the REST API. Atlassian's documentation says version 2 and version 3 of the Jira Cloud platform API offer the same operations, but version 3 supports ADF in comment bodies, worklog comments, the description and environment fields, and multi-line text custom fields. Single-line text fields take a plain string and do not handle ADF.

So a script that should create a real code block in a description sends an ADF `codeBlock` node through version 3, with the language as an attribute. Sending text with three backticks inside a plain string is not the same as typing them into the editor.

Some older integrations still write Jira wiki markup instead. We sent a few snippets through Jira's wiki renderer on our own Jira Cloud site on 29 November 2026. `{code:java}…{code}` came out as a highlighted code block. `{code}…{code}` with no language was also highlighted, as Java. `{noformat}…{noformat}` gave preformatted text with no highlighting, spaces kept. A language the renderer does not know, such as `{code:mermaid}`, gave an error instead of a block. And three backticks were printed as plain text: the wiki renderer does not read Markdown fences.

```text
{code:java}
int x = 1;
{code}

{noformat}
plain text, no highlighting
{noformat}
```

## Diagrams: a Mermaid block stays code

Mermaid is a popular way to write a diagram as text, and people often paste it into a Jira code block expecting a picture. Jira Cloud does not draw Mermaid on its own: the block below stays code in a description or a comment.

```mermaid
flowchart LR
    Open --> Review --> Done
```

Two ways around it. Draw the diagram in our free Mermaid editor, export it as PNG or SVG, attach the image to the issue and keep the source in a code block next to it, so the next person can edit it. Or keep the diagram on a Confluence page, where Mermaid Studio draws it from the source, and link that page from the issue. Our guide to Mermaid diagrams in Jira issues goes through both.

## Sources

1. [Atlassian Support: Markdown and keyboard shortcuts (Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/markdown-and-keyboard-shortcuts/)
2. [Atlassian Developer: Atlassian Document Format, document structure](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/)
3. [Atlassian Developer: ADF codeBlock node](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/codeBlock/)
4. [Atlassian Developer: Jira Cloud platform REST API v3, introduction](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/)
5. [Atlassian Marketplace: Mermaid Studio](https://marketplace.atlassian.com/apps/1011179388/mermaid-studio-ai-mermaid-diagram-editor)

## Questions and answers

### How do I add a code block in Jira?

Type three backticks at the start of a line, type / and choose code, or press ⌘ + Shift + M on a Mac (Ctrl + Shift + M on Windows). Set the language on the block for syntax highlighting.

### Does Jira support Markdown?

The Jira Cloud editor converts common Markdown as you type or paste it: bold, italics, links, headings, lists, quotes and code blocks. It does not convert tables from Markdown, and it cannot export content back to Markdown.

### Why is my code in Jira not highlighted?

Highlighting depends on the language set on the code block. Atlassian's documentation says plain text, or a language that is not supported, shows as plain monospaced text.

### Can Jira render a Mermaid diagram?

Not on its own. A Mermaid block in a description or comment stays code. Attach an exported image, or keep the diagram on a Confluence page with an app that draws Mermaid and link to it.

## How to cite

**Cite this as:** Going Stellar (2026). *Jira code blocks and formatting: what works in Cloud*. GOING STELLAR S.R.L.. https://goingstellar.ro/methods/jira-code-blocks-and-formatting/

```bibtex
@misc{goingstellar2026jira,
  title  = {Jira code blocks and formatting: what works in Cloud},
  author = {{Going Stellar}},
  year   = {2026},
  url    = {https://goingstellar.ro/methods/jira-code-blocks-and-formatting/},
  note   = {2026-11-29}
}
```

Licence. Free to quote with attribution.

## Also available

- This page as HTML: https://goingstellar.ro/methods/jira-code-blocks-and-formatting/
- Same article in Romanian: https://goingstellar.ro/ro/metode/blocuri-de-cod-si-formatare-in-jira/
