Skip to content

Latest commit

 

History

History
141 lines (105 loc) · 1.92 KB

File metadata and controls

141 lines (105 loc) · 1.92 KB

Markdown Cheat Sheet

Basic Syntax

Headers

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6

Emphasis

  • Italic or Italic
  • Bold or Bold
  • Bold and Italic or Bold and Italic

Lists

Unordered

  • Item 1
  • Item 2
    • Subitem 2.1
    • Subitem 2.2

Ordered

  1. First item
  2. Second item
  3. Third item
    1. Subitem 3.1
    2. Subitem 3.2

Links

Link text

Link with title

Images

Alt text

Extended Syntax

Tables

Syntax Description
Header Title
Paragraph Text
Left-aligned Center-aligned Right-aligned
Left Center Right

Code

Inline

This is some beautiful code.

Blocks

def hello_world():
    print("Hello, world!")

Blockquotes

This is a blockquote.

This is the second paragraph in the blockquote.

This is an H2 in a blockquote

Horizontal Rule


or


or


Footnotes

Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

HTML

You can also use raw HTML in Markdown:

<table>
  <tr>
    <th>Name</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>John</td>
    <td>30</td>
  </tr>
</table>

Task Lists

  • Task 1
  • Task 2
  • Task 3

Definition Lists (GitHub Flavored Markdown)

term 1 : definition 1

term 2 : definition 2 with multiple lines

and code blocks

Strikethrough

strikethrough

Syntax Highlighting (GitHub Flavored Markdown)

function fancyAlert(arg) {
  if (1 < 2) {
    console.log('You win');
  }
}

Escaping Characters

*literal asterisks*

Math (GitHub Flavored Markdown)

$E = mc^2$ $$ \frac{d}{dx}\left( \int_{0}^{x} f(u) , du\right) = f(x) $$