Syntax Test

This page is a fully-fledged syntax check: it exercises every markdown feature the renderer supports, gathered in one place so we can eyeball the output. If something renders wrong here, it renders wrong everywhere.

Headings

The title above is an h1; the remaining levels follow.

Third-level heading

Fourth-level heading

Text formatting

A paragraph with bold, italic, bold italic, inline code, strikethrough and a link. This sentence runs a little longer so we can check the line height and how comfortably the text wraps once it reaches the edge of the column and continues onto the next line.

Every flavour of link, to check colour, underline and hover states:

A linked image (click through): A small logo

[ref]: https://documentation.page/

Lists

Unordered, with nesting:

  • First item
  • Second item
    • Nested one
    • Nested two
  • Third item

Ordered:

  1. Step one
  2. Step two
  3. Step three

Code

Inline const answer = 42, then fenced blocks in a few languages:

// JavaScript
const greet = (name) => `Hello, ${name}!`;
console.log(greet("world"));
// TSX
type Props = { name: string };
export const Hello = ({ name }: Props) => <h1>Hi {name}</h1>;
{
  "name": "documentation-page",
  "nested": { "list": [1, 2, 3], "flag": true }
}
A plain, unhighlighted code block.

Headings inside a code block must render literally, and must not affect the real document:

# Not a real heading
## Also not real

Math

Inline math like E=mc2 and a2+b2=c2 flows within the text, subscripts and all: x1,x2,,xn. Display math is centered on its own line:

01x2dx=13
n=11n2=π26

Tables

FeatureSupportedNotes
HeadingsYesh1h4
Code blocksYesSyntax highlighted
TablesYesborder-collapse

Blockquotes

A single-line quote.

A second paragraph, with formatting inside.

Alerts

Note

Useful information the reader should know.

Tip

A helpful tip.

Important

Key information worth highlighting.

Warning

Something to be careful about.

Caution

The negative consequences of an action.

Details

Click to expand

Hidden content, revealed on toggle, with code, and a short list:

  • one
  • two

</details>

Horizontal rule

Above the rule.


Below the rule.