Markdown Cheat Sheet

Summarize some useful and common syntax of Markdown edition

Posted by Jimeng on January 3, 2021

Title

# Heading 1
## Heading 2
### Heading 3

Heading 1

Heading 2

Heading 3

Text

Bold: **Bold text**
Italic: *Italic text*
Delete line: ~~Delete line~~

Bold text

Italic text

Delete line

Link

# Markdown
[word](concrete link)  --> e.g.: [google](https://www.google.com/)
![](picture link)      --> e.g.: ![](images/demo.jpg){height=30%}
![](picture link)      --> e.g.: ![](images/demo.jpg){height=30%} \ ![](images/demo.jpg){height=10%}
<div align="center">
<img src="https://github.com/JimengShi/JimengShi.github.io/blob/master/img/Classification.png" alt="Classification" width=10%>
</div>

# Markdown for blog
[![pic_name.png](online link of picture)](blog link where you want to post)
[![wUUa9K.png](https://s1.ax1x.com/2020/09/12/wUUa9K.png)](https://jimengshi.github.io/2020/01/01/Introduction-to-Machine-Learning/)

Code

# Codes in multiple lines
```Python
Codes
```
def addition(a, b):
    print("The sum is: ", a+b)
# Codes in a single line
`Codes`

hahaha print("Hello, world!") hahaha

Break Line

# must be 3 or more
*** or ---

Table

Column1 | Column2 | Column3
:--------|:------:|-----
e | d | d
e | d | d Column1 | Column2 | Column3 :--------|:------:|-----  e | d | d  e | d | d

Check

- [x] checked words
- [ ] not checked words
  • checked words
  • not checked words

Reference:

[1] https://www.markdownguide.org/extended-syntax/

[2] https://www.markdownguide.org/basic-syntax/#blockquotes-1

[3] https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet