Markdown Test Document

This document contains examples of common Markdown syntax for testing a Markdown editor and preview renderer.


1. Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

2. Text Formatting

Bold text

Italic text

Bold and italic text

Strikethrough text

Inline code

Underlined text

Bold with italic inside


3. Paragraphs

This is a normal paragraph.

This is another paragraph separated by a blank line.

You can also have a long paragraph containing multiple sentences. Markdown renderers should normally wrap this text automatically according to the available width.


4. Unordered Lists

Using Asterisk

Using Hyphen

Using Plus

Nested Unordered List

* Nested item
* Third-level item
* Nested item

5. Ordered Lists

  1. First item
  2. Second item
  3. Third item

Nested Ordered List

  1. First item
1. Nested item
  1. Another nested item

  2. Second item

  3. Third item

Mixed Lists

  1. First item
* Nested bullet
  1. Second item
* Nested bullet
  1. Third item

6. Task Lists / Checkboxes

Nested Tasks

* [ ] Sub-task

7. Blockquotes

This is a blockquote.

This is a longer blockquote that contains multiple lines of text.

Nested Blockquote

This is the first level.

This is a nested blockquote.

Back to the first level.

Blockquote with Formatting

Important: This is a bold statement inside a blockquote.

This is italic text inside a blockquote.


8. Horizontal Rules





9. Links

OpenAI

Google

Example website

Plain URL:

https://www.example.com

Email:

example@example.com


10. Images

Example image

Example image with title


11. Inline Code

Use Console.WriteLine() to print text in C#.

You can also write var customer = new Customer(); inside a paragraph.


12. Code Blocks

C

public class Customer
{
 public int Id { get; set; }
 public string Name { get; set; }
}

JavaScript

function helloWorld() {
 console.log("Hello World");
}

HTML

<div class="container">
 <h1>Hello World</h1>
</div>

CSS

.container {
 max-width: 1200px;
 margin: 0 auto;
}

SQL

SELECT Id, Name
FROM Customers
WHERE IsActive = 1
ORDER BY Name;

JSON

{
 "id": 123,
 "name": "John",
 "active": true
}

Plain Text

This is a plain text code block.
Nothing should be formatted here.

13. Tables

Basic Table

NameAgeCity
John30New York
Sarah28London
Ahmed35Dubai

Table with Alignment

Left AlignedCenter AlignedRight Aligned
TextTextText
Item 1Item 2Item 3
Item AItem BItem Citem D

Table with Formatting

FeatureStatusNotes
**Bold**✅ DoneWorking
*Italic*⚠️ TestingNeeds testing
~~Strike~~❌ FailedNot supported

14. Escaping Markdown Characters

This is not a bullet point

This is not italic

This is not a heading

(This is not a link)

This is not code


15. Special Characters

©

®

™


16. Line Breaks

This line ends with two spaces. This line should appear directly below it.

This is another paragraph.


17. HTML

**This is HTML inside Markdown.**

This is an HTML paragraph.


18. HTML Formatting

Bold HTML text

Italic HTML text

Deleted HTML text

Highlighted HTML text

Superscript

Subscript


19. Superscript and Subscript

H2O

X2

E = mc2


20. Definition-Style Lists

Term 1 : Definition of term 1

Term 2 : Definition of term 2


21. Footnotes

Here is a sentence with a footnote.[^1]

Here is another sentence with a footnote.[^2]

[^1]: This is the first footnote.

[^2]: This is the second footnote.


22. Automatic Links

https://www.google.com

https://www.example.com

example@example.com


23. Escaped Characters

Not a heading

** Not bold


24. Special Markdown Characters

_ Underscore

Hash

. Period

! Exclamation mark

$$Square bracket

] Square bracket

( Parenthesis

) Parenthesis

` Backtick

~ Tilde


25. Nested Formatting

Bold italic text

Italic bold text

Bold strikethrough

Italic strikethrough

**This remains inline code**


26. Long List

  1. First item
  2. Second item
  3. Third item
  4. Fourth item
  5. Fifth item
  6. Sixth item
  7. Seventh item
  8. Eighth item
  9. Ninth item
  10. Tenth item

27. Nested Lists — Multiple Levels

* Level 2

* Level 3

* Level 4

* Level 5

28. Mixed Content

Important

This blockquote contains a list:

  • First item
  • Second item
  • Third item

29. Table with Code

LanguageExample
C#`Console.WriteLine("Hello");`
JavaScript`console.log("Hello");`
SQL`SELECT * FROM Users;`

30. Mermaid Diagrams

Flowchart

graph TD
 A[Start] --> B{Decision}
 B -->|Yes| C[Finish]
 B -->|No| D[Alternate]

Sequence Diagram

sequenceDiagram
 User->>Application: Request
 Application->>API: Call API
 API-->>Application: Response
 Application-->>User: Result

Simple Flowchart

flowchart LR
 A[Start] --> B[Process]
 B --> C[Result]

31. Mermaid Class Diagram

classDiagram
 class Customer {
 +int Id
 +string Name
 +Save()
 }

 class Order {
 +int Id
 +decimal Total
 +Submit()
 }

 Customer --> Order

32. Mermaid State Diagram

stateDiagram-v2
 [*] --> Pending
 Pending --> Processing
 Processing --> Completed
 Processing --> Failed
 Failed --> Pending
 Completed --> [*]

33. Mermaid Entity Relationship Diagram

erDiagram
 CUSTOMER ||--o{ ORDER : places
 ORDER ||--|{ ORDER_ITEM : contains
 PRODUCT ||--o{ ORDER_ITEM : includes

34. Mermaid Gantt Chart

gantt
 title Project Schedule
 dateFormat YYYY-MM-DD

 section Development
 Development :a1, 2026-09-01, 10d
 Testing :after a1, 5d
 Deployment :after a1, 3d

35. Mermaid Pie Chart

pie title Project Tasks
 "Development" : 50
 "Testing" : 30
 "Documentation" : 20

36. Mermaid Git Graph

gitGraph
 commit
 commit
 branch development
 checkout development
 commit
 commit
 checkout main
 merge development
 commit

37. Alert / Highlight Examples

[!NOTE] This is a note.

[!TIP] This is a useful tip.

[!IMPORTANT] This is important information.

[!WARNING] This is a warning.

[!CAUTION] This is a caution.


38. Combined Example

Project Documentation

Overview

This project provides Google Merchant onboarding functionality.

Features

Status

FeatureStatus
Account Setup✅ Complete
Site Verification✅ Complete
Product Feed🔄 Processing
Reporting⏳ Pending

Process

graph TD
 A[Start] --> B[Verify Site]
 B --> C[Claim Homepage]
 C --> D[Configure Merchant Account]
 D --> E[Process Products]
 E --> F[Generate Report]

Important Note

Note: Product processing may take some time after the data source is configured.

Example Code

var result = await merchantService.OnboardAsync(
 brand,
 siteId,
 cancellationToken);

Tasks


39. Everything Together

Bold

Italic

Bold Italic

Strikethrough

Inline code

Link

Image

Blockquote

* Nested bullet
1. Nested numbered
Column 1Column 2
Value 1Value 2
var message = "Hello Markdown!";
graph LR
A[Markdown] --> B[Renderer]
B --> C[HTML]

40. End of Markdown Test

If all of the above renders correctly, the Markdown renderer supports a broad range of common Markdown and extended Markdown features. $$