Markdown cheat sheet
A concise reference for the CommonMark, GitHub-Flavored Markdown and math syntax you can use in this viewer. Copy a pattern into the editor to see the formatted result.
Last updated: November 15, 2026
How to read this page
The examples use standard Markdown. This viewer renders CommonMark and GitHub-Flavored Markdown, but it intentionally removes raw HTML. Links must use http, https or mailto, and images must use http or https.
Headings
| Markdown | Result |
|---|---|
# Heading 1
## Heading 2
### Heading 3Use headings in order. The viewer styles all six levels, and DOCX export maps them to Word heading styles. | Heading 1 Heading 2 Heading 3 |
Emphasis and inline formatting
| Markdown | Result |
|---|---|
**bold text** | bold text |
*italic text* | italic text |
***bold and italic*** | bold and italic |
~~strikethrough~~Strikethrough is a GitHub-Flavored Markdown extension. | |
`inline code` | inline code |
Lists and task lists
| Markdown | Result |
|---|---|
- First item
- Second item
- Nested item |
|
1. First step
2. Second step
3. Third stepNumbers are rendered in sequence. You can reorder items without renumbering the source. |
|
- [x] Finished task
- [ ] Open taskTask lists are a GFM extension. DOCX export uses checkbox characters. |
|
Links and images
| Markdown | Result |
|---|---|
[Link text](https://example.com) | Link text |
[Link with title](https://example.com "Example")The title is optional and appears as a tooltip in some browsers. | Link with title |
https://example.comBare web addresses become links automatically (GFM autolink). | https://example.com |
Images load from their original host. DOCX export does not embed remote images. | Image with alt text “Alt text” |
Code
| Markdown | Result |
|---|---|
```ts
const total = items.length;
```The language label is preserved in the HTML. This viewer displays code as plain text and does not add syntax highlighting. | |
Four spaces also create a code block. | |
Blockquotes and horizontal rules
| Markdown | Result |
|---|---|
> A quoted note. | A quoted note. |
---Use a blank line before the divider so the previous paragraph is not interpreted as a heading. |
Tables
| Markdown | Result | ||||||
|---|---|---|---|---|---|---|---|
| Feature | Status |
| :--- | ---: |
| Preview | Working |
| Export | Working |Use :--- for left, :---: for center and ---: for right alignment. |
|
Footnotes
| Markdown | Result |
|---|---|
A statement with a note.[^1]
[^1]: The note text appears at the end.Footnotes are a GFM extension. The rendered note list appears after the document content. | A statement with a note.1 |
Math with KaTeX
| Markdown | Result |
|---|---|
$a^2 + b^2 = c^2$Inline math sits inside a sentence. | a² + b² = c² |
$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$Place display math on its own line for the cleanest Word export. | (−b ± √(b² − 4ac)) / 2a |
\( E = mc^2 \)Backslash-parenthesis and backslash-bracket delimiters are converted before rendering. | E = mc² |
Math and DOCX export
Supported LaTeX becomes editable Word equations. Malformed or unsupported expressions are replaced with labeled LaTeX source and a warning. A document can contain up to 500 equations.
Escaping, line breaks and raw HTML
| Markdown | Result |
|---|---|
\*not italic\*A backslash escapes a Markdown character. | *not italic* |
First line
Second lineTwo trailing spaces create a hard line break. A blank line starts a new paragraph. | First line Second line |
<span style="color: red">Red text</span>Raw HTML is not rendered. Use Markdown syntax instead of HTML tags. | The raw HTML is removed; only any plain text may remain. |
Notes specific to this viewer
- Raw HTML is sanitized out before KaTeX renders the document.
- Links are limited to
http,httpsandmailto. Other protocols are removed. - Images must use
httporhttpsand load from the remote host. - Mermaid diagrams and syntax highlighting are not supported.
- Preview and export are limited to 120,000 characters; local files are limited to 150,000 bytes.
Keep exploring