Markdown Spec Test

By: admin

Created: 06 Oct 2025 (13:00 UTC)

Updated: 06 Oct 2025 (13:00 UTC)

Heading Level 1

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6

Paragraph with bold, italic, bold+italic, strikethrough, underline, superscript, and subscript.

Mixed inline formatting: italic link text and bold+italic inside a link: important.

Inline code: print("Hello World").


Standard link: Example

Image:
Alt text

Video:


Audio:


Code Blocks

    Non-language code block
        indentation preserved

{
  "note": "json multiline codeblock",
  "list": [1, 2, 3],
  "nested": {"key": "value"}
}

<?php
echo "Hello from PHP!";


Tables

NameAgeRole
Alice25Engineer
Bob30Designer
Charlie35Manager

Another table with inline formatting:

FeatureExample
Boldtext
Italictext
Linklink
Inline Codecode

Custom Tags

inside-custom custom tags are handled just like HTML inside markdown inside-custom markdown may exist inside HTML-style-tags

See even self-closing
(explicit and not)


Edge Cases

  • Hyphenated-word (should not become strikethrough).
  • Multiple nested formats in one phrase.
  • Triple asterisk boundary test.
  • Code span with symbols: **not bold** -not strike-.
  • Placeholder check with nested image.

# Header1
## Header2
### Header3
#### Header4
##### Header5
###### Header6

text

*italic*

**bold**

***bold+italic***

-strikethrough-

_underline_

^superscript^

~subscript~

[text](url)

![alt text](image-url)

?[alt](video-url)

+[alt](audio-url)

[*alt can be styled too*](url)

- line lists

* point lists

1. numbered lists

a. numbered lists with letters

| Header1 | Header2 | Header3 |
|---------|---------|---------|
| row1col1 | row1col2 | row1col3 |
| *row2col1-styled* | row2col2 | row2col3 |

<custom>custom tags</custom>

See even self-closing<br>
(explicit and not)<br/>

--- horizontal rule

any compatible styles can of course be nested: bold and italic and strikethrough and underline and superscript and subscript

This text is a blockquote.

this too. (lvl1)

This is a nested blockquote. (lvl2)

This is a nested blockquote. (lvl3)

This is a nested blockquote. (lvl4)

this too (lvl4)

This is a nested blockquote. (lvl5)

This is a nested blockquote. (lvl6)

This is a nested blockquote. (lvl7)