Comprehensive Markdown Syntax Examples
This document demonstrates all Markdown syntax features, including those not yet supported by this parser. Features marked with ✅ are currently supported, while those marked with ❌ are not yet implemented.
Headings
ATX Headings ✅
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Setext Headings ✅
Heading 1
Heading 2
Paragraphs ✅
This is a paragraph. Paragraphs are separated by blank lines.
This is another paragraph with some strong text and emphasized text.
Line Breaks
Hard Line Breaks ✅
This line ends with two spaces
and continues on the next line.
This line ends with a backslash
and continues on the next line.
Soft Line Breaks ✅
This is a single paragraph that spans multiple lines but renders as one paragraph.
Emphasis and Strong ✅
This is emphasized text This is also emphasized (underscore) ✅
This is strong text This is also strong (underscore) ✅
This is both emphasized and strong This is also both (underscore) ✅
Code
Inline Code ✅
Use code in your text. You can also use double backticks for code with backticks inside: `code`.
Fenced Code Blocks ✅
class
EXAMPLE
feature
make
do
print ("Hello, World!%N")
end
end
Fenced Code Blocks with Tildes ✅
class
EXAMPLE
end
Indented Code Blocks ✅
This is an indented code block
with 4 spaces of indentation.
Lists
Unordered Lists ✅
First item
Second item
Third item
Unordered Lists with Different Markers ✅
Asterisk item
Another asterisk item
Plus item
Another plus item
Nested Unordered Lists ✅
First level
Second level
Third level
Back to second level
Back to first level
Ordered Lists ✅
First item
Second item
Third item
Ordered Lists with Parentheses ✅
First item
Second item
Third item
Nested Ordered Lists ✅
First level
Second level
Third level
Back to second level
Back to first level
Mixed Lists ✅
First ordered item
Nested unordered item
Another nested item
Second ordered item
Another nested unordered item
Lists with Multiple Paragraphs ✅
First item
This is a second paragraph in the same list item.
Second item
Lists with Code Blocks ✅
Item with code block:
code hereAnother item
Lists with Blockquotes ✅
Item with blockquote:
quoted text
Another item
Task Lists (GitHub Flavored Markdown) ✅
- Unchecked task
- Checked task
- Another unchecked task
Blockquotes ✅
This is a blockquote. It can span multiple lines. All lines are part of the same quote.
This is another blockquote.
Nested Blockquotes ✅
First level
Second level
Third level
Links ✅
Inline Links ✅
This is an inline link to example.com.
This is a link with title.
Reference-Style Links ✅
This is a reference-style link.
This is an implicit reference link.
This is a collapsed reference link.
Autolinks ✅
Raw HTML Links ✅
Open in new tabImages ✅
Inline Images ✅



Images with Formatted Alt Text ✅


Reference-Style Images ✅



Tables ✅
Basic Tables ✅
| Header 1 | Header 2 | Header 3 |
|---|---|---|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
Tables with Alignment ✅
| Left | Center | Right |
|---|---|---|
| Left aligned | Center aligned | Right aligned |
| More left | More center | More right |
Tables with Inline Formatting ✅
| Header 1 | Header 2 |
|---|---|
| Emphasized | Strong |
Code | Link |
Thematic Breaks ✅
HTML Blocks ✅
Raw HTML blocks are supported. A block starts when a line begins with < followed by a letter, </+letter, <!--, <?, or <!, and continues until a blank line.
This is a paragraph HTML block.
Entity References ✅
& < > " ' © &
Escaping ✅
*Not emphasized*
`Not code`
[Not a link]
Full Backslash Escapes ✅
All punctuation characters can be escaped and rendered literally:
! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~
Strikethrough (GitHub Flavored Markdown) ✅
This text is struck through
Footnotes ✅
This is a footnote reference1.
Definition Lists (not in CommonMark) ✅
Term 1 : Definition 1
Term 2 : Definition 2a : Definition 2b
Complex Examples
Mixed Content ✅
Main Heading
This paragraph contains strong text, emphasized text, code, and a link.
List item with formatting
List item with
codeList item with link
Blockquote with formatting and
code
| Column 1 | Column 2 |
|---|---|
| Data 1 | Data 2 |
Code in Lists ✅
First item
code blockSecond item
Blockquote in Lists ✅
First item
Blockquote here
Second item
Notes
Features marked with ✅ are fully supported by this parser
Features marked with ❌ are not yet implemented
Some features may have partial support or edge case limitations
This document is based on CommonMark specification with GitHub Flavored Markdown extensions
This is the footnote definition.
↩