Skip to content

Markdown sample

This document demonstrates all the major syntactic constructs available in Markdown.

Bold text using asterisks Bold text using underscores

Italic text using asterisks Italic text using underscores

Bold and italic using asterisks Bold and italic using underscores

Strikethrough text

Inline code

Regular text with bold, italic, and code mixed together.

  • Item 1
  • Item 2
    • Nested item 2.1
    • Nested item 2.2
      • Deeply nested item 2.2.1
  • Item 3

Alternative syntax:

  • Item A
  • Item B
    • Nested item B.1
    • Nested item B.2

Another alternative:

  • Item X
  • Item Y
    • Nested item Y.1
  1. First item
  2. Second item
    1. Nested numbered item
    2. Another nested item
      1. Deeply nested item
  3. Third item

Alternative numbering:

  1. Item one
  2. Item two (auto-numbered)
  3. Item three (auto-numbered)
  1. Ordered item
    • Unordered nested item
    • Another unordered nested item
  2. Another ordered item
    1. Nested ordered item
    2. Another nested ordered item
  • Completed task
  • Incomplete task
  • Another completed task
    • Nested completed task
    • Nested incomplete task

Simple link

Link with title

// TODO turn off MDX < https://www.autolink.com>

Reference link

Another reference link

Case-insensitive reference link

You can also link to local files.

Alt text

Reference image

Use console.log() to print to the console.

Simple code block without syntax highlighting
// JavaScript code block
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet("World");
# Python code block
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
print(fibonacci(10))
# Bash script
#!/bin/bash
echo "Hello, World!"
for i in {1..5}; do
echo "Number: $i"
done
{
"name": "Sample JSON",
"version": "1.0.0",
"dependencies": {
"express": "^4.18.0"
}
}

Indented code block (4 spaces): TODO: fix this parse issue

Column 1Column 2Column 3
Row 1DataMore data
Row 2InfoDetails
Left AlignedCenter AlignedRight Aligned
LeftCenterRight
TextTextText
MoreDataHere
First HeaderSecond Header
Content cell 1Content cell 2
Content cell 3Content cell 4

This is a simple blockquote.

This is a blockquote that spans multiple lines.

Nested blockquotes:

This is a nested blockquote.

And this is deeply nested.

  • List item in blockquote
  • Another item

Bold text in blockquote with inline code.







This is the first line.
This is the second line (two spaces at end of previous line).

This is the third line.

This is the fourth line (empty line creates paragraph break).

This is a line with a
backslash line break.

You can use HTML tags in Markdown.

Bold using HTML

Inline code using HTML

Ctrl + C

Highlighted text

Small text

Subscript and Superscript

Expandable section

This content is hidden by default and can be expanded.

  • List item
  • Another item
console.log("Code in details");

Here’s a sentence with a footnote1.

Another sentence with a footnote2.

Term 1 : Definition for term 1

Term 2 : Definition for term 2 : Another definition for term 2

_[HTML]: Hyper Text Markup Language _[CSS]: Cascading Style Sheets

HTML and CSS are important web technologies.

Inline math: $E = mc^2$

Block math:

$$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$

Use backslashes to escape special characters:

*Not italic* #Not a header [Not a link] `Not code`

:smile: :heart: :thumbsup: :rocket: :computer:

😀 😍 👍 🚀 💻


GitHub supports custom alerts in Markdown files, which can be used to highlight important information or warnings. Here are some examples of how to use them:

[!NOTE] Useful information that users should know, even when skimming content.

[!TIP] Helpful advice for doing things better or more easily.

[!IMPORTANT] Key information users need to know to achieve their goal.

[!WARNING] Urgent info that needs immediate user attention to avoid problems.

[!CAUTION] Advises about risks or negative outcomes of certain actions.

This document covers most of the standard Markdown syntax. Some features like footnotes, definition lists, mathematics, and certain HTML elements may not be supported in all Markdown processors, but they work in many extended versions like GitHub Flavored Markdown (GFM), CommonMark, and others.

Note: The exact rendering of these elements may vary depending on the Markdown processor being used.

  1. This is the first footnote.

  2. This is a named footnote with more details.