Cheatsheet

Markdown Cheatsheet

A comprehensive quick reference guide for Markdown syntax. Use this cheatsheet to quickly look up formatting options while writing.

Try it in the editor →

Headings

H1 Heading

H1 Heading

H2 Heading

H2 Heading

H3 Heading

H3 Heading

Text Formatting

Bold

bold text

Italic

italic text

Bold and Italic

bold and italic

Strikethrough

strikethrough

Inline Code

inline code

Lists

Unordered Lists

  • Item 1
  • Item 2
    • Nested item 2.1
    • Nested item 2.2
  • Item 3

Ordered Lists

  1. First item
  2. Second item
    1. Nested item 2.1
    2. Nested item 2.2
  3. Third item

Task Lists

  • Completed task
  • Incomplete task
  • Another incomplete task

Links and Images

Links

Basic Link
Link with Title

Images

Image

Blockquotes

Simple Blockquote

This is a blockquote. It can span multiple lines.

Nested Blockquotes

Nested quote

Double nested

Triple nested

Code

Inline Code

Use inline code in a sentence.

Code Blocks

JavaScript Code Block
1
2
3
function hello() {
  console.log("Hello, World!");
}

Tables

Basic Table
Header 1Header 2Header 3
Cell 1Cell 2Cell 3
Cell 4Cell 5Cell 6
Table with Alignment
LeftCenterRight
LeftCenterRight
TextTextText

Horizontal Rules


Math Equations

Inline Math

The equation E=mc2E = mc^2 is famous.

Block Math

b±b24ac2a\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Try math equations →

Mermaid Diagrams

Flowchart
graph TD A[Start] --> B{Decision} B -->|Yes| C[Action 1] B -->|No| D[Action 2] C --> E[End] D --> E
Try mermaid diagrams →

Footnotes

Here's a sentence with a footnote.1

Footnotes

  1. This is the footnote content.

HTML Elements

Keyboard Keys

Ctrl + C

Highlight

Highlighted text

Sub/Superscript

Subscript and Superscript

Escaping Characters

* Not italic * ** Not bold ** # Not a heading

Tips and Best Practices

  • Leave blank lines between different elements for better readability
  • Use consistent indentation (2 or 4 spaces) for nested lists
  • For code blocks, always specify the language for syntax highlighting
  • Preview your markdown before publishing

Need More Help?


This cheatsheet covers the most commonly used Markdown syntax. For advanced features and detailed explanations, explore our documentation.