Skip to content

Markdown Reference

Markdown provides a wide range of formatting options beyond headings, bold, and code blocks. Here’s an exhaustive list of commonly used Markdown syntax:

Markdown Syntax

Headings:

  • # Heading 1
  • ## Heading 2
  • ### Heading 3

Text Formatting:

  • Bold: **bold** or __bold__
  • Italic: *italic* or _italic_
  • Bold and Italic: ***bold and italic*** or ___bold and italic___
  • Strikethrough: ~~strikethrough~~

Lists:

  • Unordered List: Use -, *, or + followed by a space.
  • - Item 1
  • - Item 2

  • Ordered List: Use numbers followed by a period.

  • 1. First item
  • 2. Second item

  • Nested Lists: Indent items to create sub-lists.

- Item 1
   - Subitem 1

Blockquotes:

  • Use > for blockquotes.
  • > This is a blockquote.

Code:

  • Inline code: `inline code`
  • Code blocks:

Horizontal Rule (Line Break):

  • --- or *** or ___ (three dashes, asterisks, or underscores)
  • [Link text](URL)
  • Example: [Google](https://www.google.com)

Images:

  • ![Alt text](image URL)
  • Example: ![Logo](https://example.com/logo.png)

Tables:

  • Simple tables with pipes (|) and dashes (-).
| Header 1 | Header 2 |
|----------|----------|
| Row 1    | Row 2    |

Task Lists (Checkboxes):

  • - [ ] Task not completed
  • - [x] Task completed

Escaping Characters:

  • Use a backslash (\) to escape special characters.
  • Example: \*this is not italic\*
  • <https://example.com> for automatic linking.

Footnotes:

  • Create footnotes using [^1] and define the footnote at the bottom of the document.
  • Example: Here is a footnote[^1]. [^1]: Footnote text.

Emojis:

  • Use :emoji_name: for emojis.
  • Example: :smile:

  1. Here is an example of a Footnote in action.