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 ✅

Unordered Lists with Different Markers ✅

Nested Unordered Lists ✅

Ordered Lists ✅

  1. First item

  2. Second item

  3. Third item

Ordered Lists with Parentheses ✅

  1. First item

  2. Second item

  3. Third item

Nested Ordered Lists ✅

  1. First level

    1. Second level

      1. Third level

    2. Back to second level

  2. Back to first level

Mixed Lists ✅

  1. First ordered item

    • Nested unordered item

    • Another nested item

  2. Second ordered item

    • Another nested unordered item

Lists with Multiple Paragraphs ✅

Lists with Code Blocks ✅

Lists with Blockquotes ✅

Task Lists (GitHub Flavored Markdown) ✅

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 ✅

https://example.com

user@example.com

Raw HTML Links ✅

Open in new tab

Images ✅

Inline Images ✅

Alt text

Alt text with title

Alt text with single-quoted title

Images with Formatted Alt Text ✅

Alt with emphasis

Alt with strong

Reference-Style Images ✅

Alt text

Alt text

Alt text

Tables ✅

Basic Tables ✅

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

Tables with Alignment ✅

LeftCenterRight
Left alignedCenter alignedRight aligned
More leftMore centerMore right

Tables with Inline Formatting ✅

Header 1Header 2
EmphasizedStrong
CodeLink

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 an HTML block.

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.

Blockquote with formatting and code

Column 1Column 2
Data 1Data 2

Code in Lists ✅

  1. First item

    code block
  2. Second item

Blockquote in Lists ✅

  1. First item

    Blockquote here

  2. Second item

Notes

1:

This is the footnote definition.

↩