Markdown Rendering Examples

🕒 Reading time: 3 min📝 Words: 615👀 Views: Loading...

View Markdown source

Comprehensive Markdown Syntax Guide

Basic Syntax

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Inline formatting

These examples use the site’s accentColor. Shape, typeface and decoration make each marker recognizable even when the colors are similar.

Marker Source Rendered
Emphasis *Italic* Italic
Strong **Bold** Bold
Combined ***Bold Italic*** Bold Italic
Removal ~~Strikethrough~~ Strikethrough
Highlight <mark>Highlight</mark> Highlight
Inline code `const value` const value
Keyboard key <kbd>Esc</kbd> Esc
Explicit underline <u>Underline</u> Underline

Lists

Unordered Lists

  • Item 1
  • Item 2
  • Item 3

Ordered Lists

  1. Item 1
  2. Item 2
  3. Item 3

Task Lists

  • Completed task
  • Incomplete task

Link text Image description

Blockquotes

This is a blockquote

This is a nested blockquote

Triple nested blockquote

Code

Inline code var example = "hello";

This is a code example
// Code block
function example() {
return "Hello, world!";
}

Horizontal Rules




Tables

Header 1 Header 2 Header 3
Left Center Right
Cell Cell Cell

Advanced Nesting Examples

Nested Lists

  1. First level
    • Second level
      • Third level
        • Fourth level
    • Back to second level
  2. Back to first level

Nested Blockquotes and Formatting

First level blockquote

Second level blockquote

Bold text with italics inside

  1. List within blockquote
  2. Second item

Code within blockquote

Back to first level

Formatting in Tables

Feature Syntax Result
Bold **text** text
Italic *text* text
Code `code` code
Link [link](url) link

HTML Mixing

Expand a disclosure The triangle shows whether the section is collapsed or expanded.

HTML Block

This is an HTML paragraph mixed with Markdown

  • Markdown list within HTML
  • Second item

Markdown blockquote within HTML

Footnotes

Here is a footnote1, and another one2.

LaTeX Math Formulas

Built-in — Temml converts $...$ / $$...$$ to MathML at build time (features.math is enabled by default by the Stalux integration). No configuration needed.

Inline formula: E=mc2

Block formula:

ddx(ex)=ex

Mermaid

Built-in — Mermaid diagrams render to SVG at build time (MDAST detection + HAST rendering, injected by the Stalux integration). No configuration needed.

Flowchart

YesNoStartIs it?OKFailEnd

Sequence Diagram

JohnAliceJohnAliceHello JohnHi AliceHow are you?Great!

Class Diagram

Animal+int age+String gender+isMammal()Duck+String beakColor+swim()Fish-int sizeInFeet-canEat()

State Diagram

startdoneerrorretryIdleProcessingSuccessFailed

Flowchart

LoginDashboardSettingsProfileSecurityNotificationsEditAvatar

Special Character Escaping

* Escaped asterisk \ Escaped backslash ` Escaped backtick _ Escaped underscore { } Escaped curly braces [ ] Escaped square brackets ( ) Escaped parentheses # Escaped hash + Escaped plus - Escaped minus . Escaped period ! Escaped exclamation mark

Footnotes

  1. This is the content of the first footnote. ↩

  2. This is the second footnote, which can span multiple lines. Indented content belongs to the footnote. ↩