A single Markdown file exercising (nearly) every part of the Markdown standard and common extensions.
Plain text looks like this.
Bold text
Italic text
Bold + Italic
Strikethrough
inline code
Mixed formatting:
You can combine bold, italic,
inline code, and evenstriketext.
Escaping characters:
*literal asterisk*
| literal pipe |
# not a heading
Inline code examples:
git status before git commitprintf("%s\n", value); in Casync changes behaviormallocfreeThis is a simple quote.
Quote with Heading
You can include formatted text, emphasis, and
inline code.
- Lists inside quotes
- Item A
- Item B
- Ordered inside unordered
- Still valid
Nested quote
Triple nested quote
Back to level two
Paragraph one inside quote.
Paragraph two inside quote, separated properly.
def factorial(n: int) -> int:
if n <= 1:
return 1
return n * factorial(n - 1)
print(factorial(5))
{
"name": "Markdown",
"type": "markup",
"features": ["tables", "lists", "code"],
"supported": true
}
Indented code block:
for i in range(3):
print(i)
| ID | Feature | Syntax Example | CommonMark | GitHub MD | Edge Case | Inline Formatting | Multiline / HTML | Escaping & Symbols | Notes |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Heading | # H1 |
β | β | ATX only | bold, italic | Line 1 Line 2 |
# \# ## |
Levels 1β6 |
| 2 | Bold | **text** |
β | β | Nested | bold code |
<strong>HTML</strong> |
\*\* |
|
| 3 | Italic | *text* |
β | β | _alt_ |
italic | <em>HTML</em> |
_ \_ |
|
| 4 | Combo | ***text*** |
β | β | Order | bold+italic | <b><i>X</i></b> |
*** |
|
| 5 | Strike | ~~text~~ |
β | β | Extension | <del>HTML</del> |
~ \~ |
GitHub-only | |
| 6 | Inline Code | `a|b` |
β | β | Pipes | a | b |
|
`| `` | Escapes MD |
| 7 | Code Block | lang | β
| β
| Fence | ` inside | |
Fenced | ||||||
| 8 | Lists | - item |
β | β | Nesting | - a |
1.<br>2. |
- \- |
Deep OK |
| 9 | Table Cell | | a | |
β | β | Pipe hell | A | B | <br> |
| | |
Fragile |
| 10 | Links | [t](u) |
β | β | Titles | x | <a href> |
( ) [ ] |
|
| 11 | Images |  |
β | β | Alt text | italic alt | <img /> |
! \! |
|
| 12 | Blockquote | > q |
β | β | Nested | > q |
<blockquote> |
> \> |
|
| 13 | Task List | - [x] |
β | β | Checkboxes | [x] done |
<input> |
[ ] [x] |
GFM |
| 14 | Footnote | <sup class="footnote-ref" id="fnref-1"><a href="#fn-1">[1]</a></sup> |
β | β οΈ | Ref reuse | see[1] | <sup> |
^ \^ |
Renderer |
| 15 | HTML | <div> |
β | β | Raw | HTML + MD | <div><p>X</p></div> |
< > & |
Inline |
| 16 | Emoji | :smile: |
β | β | Shortcodes | π β | <span>π</span> |
: |
Platform |
| 17 | Math-ish | x^2 |
β | β | Plaintext | x^2 + y^2 | <sup> |
^ _ |
No LaTeX |
| 18 | Quotes | "text" |
β | β | Nest | "quoted" | <q> |
" ' |
|
| 19 | Line Break | twoβ β |
β οΈ | β οΈ | Renderer | line break |
<br> |
β β |
Subtle |
| 20 | Chaos Cell | mixed | β οΈ | β οΈ | All | code em |
<b>X</b><br> |
| \* \_ |
Torture |
This works when Markdown needs extra control.
Inline image with title:
| ID | Description | Preview | Notes |
|---|---|---|---|
| 1 | Simple image | Inline | |
| 2 | Image + bold | Formatting | |
| 3 | Escaped |  | Literal |
| 4 | HTML img | <img src="https://upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg" width="40"/> |
HTML |
β οΈ Markdown does not officially support video embeds. Most platforms rely on HTML or link previews.
| Method | Syntax | Works Where | Notes |
|---|---|---|---|
| Link | [text](url) |
Everywhere | Safest |
| Image Link |  β (url) |
GitHub | Preview |
HTML <video> |
<video> |
HTML renderers | Local files |
<iframe> |
<iframe> |
GitHub / Obsidian | External |
| Escaped | \<video\> |
Everywhere | Literal |
This document references a footnote here[md].
You can reference it again later[md].
Footnotes are supported in GitHub Markdown, Pandoc, Obsidian, and many modern renderers.
β©