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
Links
Inline Link
[link text](www.google.com)
Reference Link
[link text][name]
[name]: www.google.com
Anchor Link
<a name="anchor">Anchor</a>
[link to anchor](#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)
Reference
![alt text][id]
[id]: https://www.google.com/images/logos/ps_logo_6.png
Lists
Bulleted
- Unordered
- Lists
- Nested
- Multi
paragrah
- Mixed
- Children
Numbered
- Ordered
- Lists
- Nested
- Multi
Paragraph
- 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!}$$
Inline
The quadratic equation is $ x = \frac{-b\pm\sqrt{b^2-4ac}} {2a} $
The quadratic equation is
- Footnote content can be placed anywhere in the document. ↩
No comments:
Post a Comment