Headings
One # per level. Use one H1 per document.
# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4
Reference
Every syntax rule that works in Markdown Writer, grouped by flavor — CommonMark, GitHub Flavored Markdown, extensions for math, diagrams and alert callouts, and the HTML fallbacks for what markdown can't do on its own. Each rule shows the syntax, the rendered result, the gotchas, and which platforms support it.
The standardised baseline. Works in every markdown processor and is the foundation every other flavor builds on.
One # per level. Use one H1 per document.
# Heading 1 ## Heading 2 ### Heading 3 #### Heading 4
Wrap text in asterisks. Combine for both.
*italic* and _italic_ **bold** and __bold__ ***both*** and ___both___
italic and italic
bold and bold
both and both
A single newline is ignored. Force a break with two trailing spaces or a backslash.
First line ends with two spaces and this is a new line, same paragraph. First line ends with a backslash\ and this is also a new line. A blank line starts a new paragraph.
First line ends with two spaces
and this is a new line, same paragraph.
First line ends with a backslash
and this is also a new line.
A blank line starts a new paragraph.
Inline links use square brackets and parentheses.
[Markdown Writer](https://markdownwriter.com) [with title](https://example.com "tooltip")
Same as links, with a leading exclamation mark.
 
Hyphens or asterisks for bullets. Numbers for ordered.
- First - Second - Nested - Nested 1. One 2. Two
Prefix lines with a greater-than sign.
> The clouds were doing > that thing where they > look painted on.
The clouds were doing that thing where they look painted on.
Wrap with single backticks.
Run `pnpm install` to get started.
Run pnpm install to get started.
Triple backticks. Optional language hint after the opener.
``` plain code no highlighting ```
plain code no highlighting
Three or more hyphens, asterisks, or underscores on a line.
Above the line. --- Below the line.
Above the line.
Below the line.
Prefix a markdown character with a backslash to render it literally.
\*not italic\* and \_not italic\_ \# not a heading \[not a link\](not a url)
*not italic* and _not italic_
# not a heading
[not a link](not a url)
GitHub's superset. Markdown Writer supports the full GFM spec — tables, task lists, footnotes, autolinks, strikethrough.
Pipe-separated columns. The dash row sets alignment with optional colons.
| Feature | Status | Notes | | ------------ | :----: | -----------: | | Tables | ✓ | GFM | | Task lists | ✓ | GFM | | Math | ✓ | KaTeX |
| Feature | Status | Notes |
|---|---|---|
| Tables | ✓ | GFM |
| Task lists | ✓ | GFM |
| Math | ✓ | KaTeX |
Bullets with bracketed checkboxes. Use x for checked.
- [x] Ship cheatsheet page - [x] Add FAQ schema - [ ] Submit to Product Hunt - [ ] Nested subtask - [ ] Land on page one
Wrap with two tildes.
~~deprecated~~ replaced by the new API.
deprecated replaced by the new API.
Wrap with two equals signs.
Remember to ==ship on Friday==.
Remember to ship on Friday.
GFM auto-detects bare URLs and email addresses.
Visit https://markdownwriter.com or email hello@markdownwriter.com.
Visit https://markdownwriter.com or email hello@markdownwriter.com.
Add a language hint after the opening fence.
```ts
const greet = (name: string) => `Hello, ${name}!`;
```const greet = (name: string) => `Hello, ${name}!`;Reference with [^id] in text and define elsewhere.
Markdown is portable[^1]. [^1]: Same source, every renderer.
Extras Markdown Writer adds on top of GFM. Math, diagrams, and GitHub-style alert callouts — all rendered in the live preview.
GitHub-style admonitions. Five types, all colour-coded.
> [!NOTE] > Useful information users should know. > [!TIP] > Helpful advice for doing things better. > [!WARNING] > Critical content demanding immediate user attention.
Note
Useful information users should know.
Tip
Helpful advice for doing things better.
Warning
Critical content demanding immediate user attention.
Wrap LaTeX in single dollar signs. Rendered with KaTeX.
Einstein's $E = mc^2$ holds in every frame.
Einstein's E = mc2 holds in every frame.
Double dollar signs surround a centered display equation.
$$
\int_0^\infty x^2 e^{-x} \,dx = 2
$$Use a mermaid-tagged code fence. Renders as SVG.
```mermaid graph LR A[Write] --> B[Preview] B --> C[Export] ```
Markdown has no syntax for underline, alignment, superscript, or collapsible sections — the answer is inline HTML. Most renderers allow it, but sanitizers differ, so check the support row on each rule before you rely on it.
There is no markdown syntax for underline. Use the <u> or <ins> tag.
<u>underlined text</u> <ins>inserted text</ins> also renders underlined.
underlined text
inserted text also renders underlined.
No markdown syntax for alignment. Use an align attribute on a block tag.
<p align="center">Centered paragraph</p> <div align="center"> **Markdown works here** if you leave a blank line. </div>
Centered paragraph
Markdown works here if you leave a blank line.
No markdown syntax. Use the <sup> and <sub> tags.
E = mc<sup>2</sup> H<sub>2</sub>O
E = mc2
H2O
Use <details> with a <summary> caption to create an expandable block.
<details> <summary>Click to expand</summary> Hidden content. Markdown is parsed here as long as you leave the blank line above. </details>
Hidden content. Markdown is parsed here as long as you leave the blank line above.
Hide notes from the rendered output with an HTML comment.
<!-- This note will not render. --> [//]: # (This one is kept out of the HTML entirely.)
Nothing renders — both forms are invisible in the output.
Live preview, syntax highlighting, math, diagrams, and PDF export — all in your browser, no sign-up.
Open the editor