Markdown Cheat Sheet

FeatureSyntaxExample
Headings# H1 through ###### H6# Heading 1 → # Heading 1
Bold**text** or __text__**bold text**bold text
Italic*text* or _text_*italic text*italic text
Bold & Italic***text*** or ___text___***bold italic***bold italic
Strikethrough~~text~~~~strikethrough~~strikethrough
Inline Code`code``const x = 1`const x = 1
Code Block ```language + code + ```See code block example below
Link[text](url)[Google](https://google.com)Google
Image![alt](url)![Logo](https://example.com/logo.png)
Unordered List- item or * item- Item 1 → - Item 1
Ordered List1. item1. First → 1. First
Task List- [ ] or - [x]- [ ] Todo → - [ ] Todo
Blockquote> text> This is a quote → > This is a quote
Horizontal Rule--- or ***--- → ---
Table| Col1 | Col2 | + | --- | --- | + | Data | Data |See table example below
Line BreakTwo spaces + Enter (or just Enter with remark-breaks)Single line breaks are preserved
Escape Characters\*text\*\*not italic\* → *not italic*
Autolinkhttps://example.comURLs auto-convert to links
Nested ListsIndent with 2 spaces- Item then - Subitem
Table Alignment:--- (left), :---: (center), ---: (right)See table example below

Extended Examples

Table Example

FeatureSupportedNotes
TablesFull GFM support
AlignmentLeft, center, right
Strikethrough~~text~~
Task Lists- [ ] and - [x]

Code Block Example

function greet(name) {
  return `Hello, ${name}!`;
}

Nested Lists Example

  1. First item
    • Nested item
    • Another nested item
  2. Second item
    • More nesting
      • Even deeper

Blockquote with Formatting

This is a blockquote with formatting and a link

Mixed Formatting

This paragraph has bold, italic, both, code, and strikethrough text.