Markdown Syntax

Markdown is a plain text format that is intended to be easy to write and read but also able to provide enough markup options for most forms of writing. On the one hand, Markdown leverages the advantages of plain text: it is light weight, highly portable, non-proprietary, and easily searchable across different documents. On the other, Markdown text can be turned into HTML, PDFs, and even Word documents with stylized text through different interpreters.

This document provides a basic overview of the Markdown syntax. Note that there are various “flavors” of Markdown that have different capabilities, but the basic syntax is largely shared.

Paragraphs

Paragraphs are created in Markdown by writing text with no indentation. To create another paragraph there must be one or more blank lines separating the paragraphs.

This will be a second paragraph.

Paragraphs are created in Markdown by writing text with no indentation. To create another paragraph there must be one or more blank lines separating the paragraphs.

This will be a second paragraph.

Text Formatting

Markdown Syntax Output
*italics* or _italics_
italics
**bold** or __bold__
bold
`verbatim code`
verbatim code

Headings

Markdown Syntax Output
# Header 1

Header 1

## Header 2

Header 2

### Header 3

Header 3

#### Header 4

Header 4

##### Header 5
Header 5
###### Header 6
Header 6

Lists

Unordered lists are created by typing -, *, or + at the start of a line followed by a space. You can choose one symbol or switch between them in nested lists. The styling of the bullets is done by the output interpreter, not by which symbol you choose.

Ordered lists are created by typing a number followed by a period and a space (1.).

Nested lists are created by indenting the next line in a list with a tab or four spaces followed by the syntax for creating an unordered or ordered list. Unordered and ordered lists can be combined.

Unordered lists

- unordered list
    - nested item
    - nested item
        * further nesting 
  • unordered list
    • nested item
    • nested item
      • further nesting

Ordered lists

1. ordered list
2. Second item
    1. nested item
        1. further nesting
  1. ordered list
  2. Second item
    1. nested item
      1. further nesting

Mixed lists

1. mixed list
    - unordered nesting
        1. ordered nesting 
        2. second ordered nesting
    - unordered nesting
2. Second item
  1. mixed list
    • unordered nesting
      1. ordered nesting
      2. second ordered nesting
    • unordered nesting
  2. Second item

Footnotes

Footnotes are created in much the same way as reference links but a carrot (^) is placed before the reference.

Some text with a footnote.[^1]

[^1]: The linked footnote appears at the end of the document.

Some text with a footnote.1

Block quotes

A block quote is created by type a greater than sign (>) followed by a space at the beginning of a line.

This is a normal paragraph.

> Followed a block quote
> 
> With multiple paragraphs

And then another paragraph.

This is a normal paragraph.

Followed a block quote

With multiple paragraphs

And then another paragraph.

Resources

Footnotes

  1. The linked footnote appears at the end of the document in HTML and end of the page in a PDF.↩︎