Markdown showcase

This document exercises supported Markdown and extensions. Use its generated HTML as a visual regression fixture while evolving the parser.

Headings

ATX heading level 1

ATX heading level 2

ATX heading level 3

ATX heading level 4

ATX heading level 5
ATX heading level 6
Closing ATX heading

Paragraphs and inline text

This paragraph contains emphasis, strong text, inline code, and a local link.

It also contains a reference link, a shortcut reference, direct image the MarkShup logo, referenced image a reference image, and *escaped emphasis*.

This is a soft-wrapped line. This line follows it without a hard break.

This line ends with a hard break.
This line follows it.

This line ends with two spaces. This line follows it.

Thematic break


Lists

  1. Ordered list starting at seven
  2. Second ordered item
  3. Third ordered item

Block quotes

A block quote with strong text and inline code.

A second quoted paragraph.

Outer quote

Nested quote

Code blocks

Indented code block
with two lines
printf '%s\n' 'Fenced code block'
Tilde-fenced code block.
Long fenced code block.

HTML

Raw HTML block.

Inline HTML, an HTML entity &, normal &, and a comment follow.

Extensions

Common extensions

These extensions are supported by GitHub, Codeberg, and the VSCodium Markdown preview, so they are considered pretty common.

Double tildes strikethrough.

Jump to headings and heading identifiers provide anchor support.

Automatic link: https://example.com and https://example.com.

Email automatic link: hello@example.com.

Footnotes can provide supporting detail.1

Emoji shortcodes: 🚀 ✨ ✅

Feature Status Example
Emphasis 1 text
Inline code 2 text
Escaped pipe 3 one | two

Diagrams

E.g. flowcharts

flowchart LR
    Markdown --> HTML
    HTML --> Diagram

or sequence diagrams

sequenceDiagram
    MarkShup->>Mermaid: Diagram source
    Mermaid-->>Browser: SVG diagram

Less common extensions

These extensions are either not known to GitHub, Codeberg, or VSCodium, so they are considered less common.

Identified heading

Highlighted text.

Term
Definition list entry.

Single tildes strikethrough.

Note

An admonition or callout.

MarkShup extensions

These are convenience extensions introduced by MarkShup itself.

This is ~extra tildes strikethrough~.

H2O and x10.

  1. This is a footnote with formatted text.