Markdown docs: Markdown syntaxMarkdown

Need help? Contact support

Markdown docs

Supported Markdown

Everything you write on GitHub works here, plus footnotes and definition lists.

The app follows GitHub-flavored Markdown (GFM), the Markdown used on GitHub and by most AI tools.

What’s supported

ElementExample
Headings# Title, ## Section … ######
Bold, italic, strikethrough**bold**, *italic*, ~~gone~~
Inline code`npm install`
Links and autolinks[docs](https://example.com), https://example.com
Lists, nested- item, 1. step, indented for nesting
Task lists- [x] done, - [ ] to do
Tables, with alignment| :-- | :-: | --: | for left, centre, right
Blockquotes> quote
Code blocks```python … ```
Footnotestext[^1] and [^1]: the note
Definition listsTerm on one line, : Definition on the next
Images![alt](https://…/image.png) or an attached image
Horizontal rule---
Diagrams```mermaid — see Mermaid diagrams

Code highlighting

Code blocks are highlighted when you name the language after the opening backticks, such as ```js or ```sql. Common languages are supported, including Bash, C, C#, C++, CSS, Go, Java, JavaScript, JSON, Kotlin, PHP, Python, Ruby, Rust, SQL, Swift, TypeScript, XML/HTML and YAML. Without a language, code is shown as plain text.

HTML

Like GitHub, the app allows a safe set of HTML inside Markdown, for example:

  • <details> and <summary> for collapsible sections
  • <kbd>, <sup>, <sub>, <mark>, <br>
  • <img> with width and height, and <picture>
  • tables and lists written in HTML

Scripts, styles, forms, iframes and event attributes like onclick are removed. They never run.

Front matter

A YAML block at the very top of the file, between two --- lines, is hidden — as on GitHub. Files from static site generators and AI tools often start with one.

Not supported

  • Math written as $…$ stays plain text. Use our LaTeX app for formulas.
  • Emoji shortcodes like :rocket: stay as text. Paste the emoji itself instead.
  • Headings in the Table of Contents macro. Confluence’s Table of Contents macro lists only the page’s own headings, not those inside the Markdown macro.