Markdown Syntax Guide
Text Formatting
Regular text, bold, italic, bold italic, strikethrough, and inline code.
Blockquotes can contain formatting and even multiple paragraphs.
Nested blockquotes work too.
Headings
H1 — Document Title
H2 — Section
H3 — Subsection
H4 — Sub-subsection
H5 — Minor heading
H6 — Smallest heading
Lists
Unordered
- First item
- Second item
- Nested item
- Another nested
- Even deeper
Ordered
- Step one
- Step two
- Sub-step A
- Sub-step B
Task List
- [x] Completed task
- [x] Another done
- [ ] Still to do
Tables
| Left | Center | Right |
|---|---|---|
| L1 | C1 | R1 |
| L2 | C2 | R2 |
| L3 | C3 | R3 |
Code
typescriptconst { html, flavor } = await renderMarkdown(input);
console.log(`Detected: ${flavor.primary}`);
pythonimport requests
response = requests.post("https://mdfy.app/api/docs", json={
"markdown": "# Hello World",
})
print(response.json()["id"]) # → "abc123"
Math (KaTeX)
Inline: and
Footnotes
Created by John Gruber[1]. Most popular flavor: GFM[2].
Description Lists
Markdown : A lightweight markup language for creating formatted text.
WASM : WebAssembly — a binary instruction format for a stack-based virtual machine.