# Horizontal rule in Jira: ---- wiki markup and ADF rule

URL: https://goingstellar.ro/reference/jira-formatting/horizontal-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.

- `---`: 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}`:

```json
{
 "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):

```html
<hr />
```

Back to wiki after the round trip:

```
----
```

Sent to Jira Cloud on 29 Nov 2026.

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):

```html
<hr />
```

Back to wiki after the round trip:

```
----
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
text ---- text
```

Four dashes inside a line of text are not a rule. They stay as characters.

Rendered by Jira (HTML):

```html
<p>text ---- text</p>
```

Back to wiki after the round trip:

```
text ---- text
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
---
```

Three dashes alone are not a rule in wiki markup. They are the em dash shortcut.

Rendered by Jira (HTML):

```html
<p>&#8212;</p>
```

Back to wiki after the round trip:

```
—
```

Sent to Jira Cloud on 29 Nov 2026.

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):

```html
<hr />
```

Back to wiki after the round trip:

```
----
```

Sent to Jira Cloud on 29 Nov 2026.

## 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 ---- text` is not converted.

## Related

- [-- and --- dashes](https://goingstellar.ro/reference/jira-formatting/dashes/)
- [h1. to h6. headings](https://goingstellar.ro/reference/jira-formatting/headings/)
- [Line breaks and paragraphs](https://goingstellar.ro/reference/jira-formatting/line-breaks-paragraphs/)
- [bq. and {quote}](https://goingstellar.ro/reference/jira-formatting/block-quote/)

## Sources

- [Text Formatting Notation Help (Jira, in-product help)](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)
- [Confluence wiki markup (Atlassian Documentation)](https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html)
- [Markdown and keyboard shortcuts (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/markdown-and-keyboard-shortcuts/)
- [Atlassian Document Format: document structure (Jira Cloud platform)](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/)

