Thursday, January 2, 2014

Markdown Cheat Sheet

Markdown Cheat Sheet

Table of Contents

[TOC]

Outline

# Header 1
## Header 2
### Header 3
...

Basic Formatting

Bold

__bold__
**bold**

bold
bold

Italic

_italic_
*italic*

italic
italic

Blockquote

> Something famous was said

Something famous was said

[link text](www.google.com)

link text

[link text][name]

[name]: www.google.com

link text

<a name="anchor">Anchor</a>
[link to anchor](#anchor)

Anchor
link to anchor

Footnotes

Some text[^footnote]

[^footnote]: Footnote content can be placed anywhere in the document.

Some text1

Images

Inline

![alt text](https://www.google.com/images/logos/ps_logo_6.png)

alt text

Reference

![alt text][id]

[id]: https://www.google.com/images/logos/ps_logo_6.png

alt text

Lists

Bulleted

  • Unordered
  • Lists
    • Nested
    • Multi
      paragrah
  • Mixed
    1. Children

Numbered

  1. Ordered
  2. Lists
    1. Nested
    2. Multi
      Paragraph
  3. Mixed
    • Children

Definitions

Term
Definition 1
Definition 2

Tables

| Header | Centered | Right Align |
| ------ | :------: | ----------: |
| Left   | Center   | Right       |
| Colspan          || Right 2     |
Header Centered Right Align
Left Center Right
Colspan Right 2

Code

 ```python
 def fib(n):
     if n <= 1:
         return 1
     else:
         return fib(n-1) + fib(n-2)
 ```
def fib(n):
    if n <= 1:
        return 1
    else:
        return fib(n-1) + fib(n-2)

Math

Block

$$ e^x = \sum_{i=0}^{\infty}\frac{x^i} {i!}$$

ex=i=0xii!

Inline

The quadratic equation is $ x = \frac{-b\pm\sqrt{b^2-4ac}} {2a} $

The quadratic equation is x=b±b24ac2a


  1. Footnote content can be placed anywhere in the document.

No comments:

Post a Comment