Comprehensive Markdown Syntax Test

This article demonstrates nearly all Markdown syntax elements to test how your theme renders them.

1. Headings

Markdown supports six levels of headings:

Heading Level 1

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6

2. Paragraphs and Line Breaks

This is the first paragraph.

This is the second paragraph.

This line ends with a forced line break
This is the next line.

3. Emphasis and Highlighting

This text is italicized This text is also italicized

This text is bold This text is also bold

This text is bold and italic This is also bold and italic

This text has a strikethrough

This is inline code

4. Blockquotes

This is a blockquote

This is the second paragraph in the blockquote

This is a nested blockquote

5. Lists

Unordered Lists

  • Item 1
  • Item 2
    • Subitem 2.1
    • Subitem 2.2
  • Item 3

  • Another unordered list symbol
  • Item 2
    • Subitem
  • Item 3

  • A third unordered list symbol
  • Item 2
  • Item 3

Ordered Lists

  1. First item
  2. Second item
    1. Subitem 2.1
    2. Subitem 2.2
  3. Third item

Task Lists

  • Completed task
  • Incomplete task
  • Another completed task

Inline link

Link with title

Reference-style link

Relative reference to a repository file

Numbered reference-style link

URLs and URLs in angle brackets will automatically get turned into links: https://www.example.com or https://www.example.com

7. Images

Markdown Logo

Image with title

8. Tables

Header 1 Header 2 Header 3
Cell 1 Cell 2 Cell 3
Cell 4 Cell 5 Cell 6

Alignment

Left-aligned Center-aligned Right-aligned
Text Text Text
Longer text Longer text Longer text

9. Code Blocks

Inline code: var example = "hello";

// JavaScript code block with syntax highlighting
function hello() {
  console.log("Hello, world!");
}
# Python code block
def hello():
    print("Hello, world!")
/* CSS code block */
body {
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
}

Code block with no specified language:

This is a code block with no specified language
It can be used for plain text

10. Horizontal Rules

Three ways to create horizontal rules:




11. Escaped Characters

* Asterisks don’t make italic text * ` Backticks don’t make code ` # Hash doesn’t make a heading [Brackets don’t make links]

12. HTML Tags

This is blue text using HTML tags. </div>

13. Footnotes

Here’s a footnote reference1.

14. Definition Lists

Term 1 : Definition 1

Term 2 : Definition 2a : Definition 2b

15. Math Expressions (if supported by theme)

Inline math: $E = mc^2$

Block math:

\[\frac{n!}{k!(n-k)!} = \binom{n}{k}\]

16. Emojis (if supported by theme)

:smile: :heart: :thumbsup:

17. Diagrams (if supported by theme)

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

18. Table of Contents (if supported by theme)

[TOC]

19. Theme-specific Callouts

[!NOTE] This is a note callout (GitHub-style)

[!WARNING] This is a warning callout (GitHub-style)

[!TIP] This is a tip callout (GitHub-style)

20. Keyboard Keys

Ctrl+Alt+Delete

  1. This is the footnote content.