How to use markdown on Typora
[TOC]
1. Headline
use #headline to write a headline. The second headline is ##headline2 and so forth till 6th headline.
2. split line
use --- to establish a split line. more than three(included) - ,*, _, or +would also do.
3. font
**bold** for bold,
*italic* for italic,
***itlic bold*** for italic bold and
~~crossline~~ for crossline
4. quotation
1 | code: |
first order quotation
second order quotation
…Nth order quotion
5. Category creating
easy to use, simply type [TOC] and you get the category out of headlines

6. Code blocks
1. inline tags
use ` on both sides of tagged content for one line codes
1 | `hello world, print()` |
hello world, print()
2. Multiline code blocks
use ``` on both sides to creat code blocks
Code:
1 | ```python |
Result:
1 | a = 1 |
python closely after ````` tells what language and so what color of words to present
7. Links of website, pic, video
[百度](https://www.baidu.com/)
[百度2][baidu][baidu]: https://ww.baidu.com<https://www.baidu.com>
- Mail:
<tuy@mail.sustc.edu.cn>
- Pictures. (some might not load)

Online videos
<iframe height=498 width=850 src='https://www.bilibili.com/video/av1205827/?spm_id_from=333.788.videocard.19' frameborder=0 'allowfullscreen'></iframe>
8. list
this is list one
1. this is list one
list 2
* list 2list 2
var a = 10; //code in lists
9. task management
- [x] Task 1
- [ ] Task 2
Remember that for undone tasks, you need to add space in [ ].
Task 1
Task 2
Task 3
10. Charts
1. table
start a new line with |----|----| and “enter” when finished. Adjustments could be made later like word/excel.
| name | gender | major |
|---|---|---|
2. Charts
11. Flow chart
notice that when typing
st=>start: begining sentencethere is a blankspace after:and the same for other five type of var:end, operation, subroutine, condition, and inputoutputAlso be careful that
cond(yes)andcond(no)should come closely next to its former flow sentence and no blankspace should be placed. For example, codes like this doesn’t work:1
2
3st->op->cond
cond(yes)->io->end
1 | st=>start: input x |
12. Font color, size, face
13. Escape character (转义字符)
use HTML notations \ before every character that contrast with markdown programming.
code
1 | \\ //反斜杠 |
demo
\
`
{}
14. Comment
Outside of comments <!-- comments --> outside of comments
Outside of commentsoutside of comments
15. In-text Jump-to
- use HTML tags to achieve this purpose, only works on html formed file, unavilable on pdf;
" "or' 'or adding no quotation marks also works
define a tag:
<span id="jump">destination</span>jump to:
[click to jump](#jump)Demo:
this is for test in-text-jump
- use link to jump, only works for headlines (does not work for webhtml)
- [click to jump](#8. List)
16. Cross reference
to be continued…
17 Math
Parentheses:
(\frac{}{})gives small parentheses: $(\frac{\sqrt a}{y^3})$, while\left(...\right)helps adjust the size of parentheses.\left(\frac{1}{2a}\right)gives $\left(\frac{\sqrt a}{y^3}\right)$.\lbracegives $\lbrace$ ,\rbracegives $\rbrace$. There are also invisible parentheses, denoted by.:\left.\frac12\right\rbraceis $\left.\frac12\right\rbrace$.\left\lbrace\frac12\right.is $\left\lbrace\frac12\right.$ which is useful in array or multilined equations.Fracetions:
\frac{..}{..}and{..\over..}show the same thing ${a+\sqrt x \over \int_0^\infin x{\rm d}x}$. Remember that\cfracgives continued fraction $\cfrac{a_1}{a_2+\cfrac{1}{a_3+\cfrac{1}{a_4}}}$. Also gives a larger and better format for $\cfrac{a+\sqrt x}{\int_0^\infty x{\rm d}x}$.special functions:
\lim_{x\to 0}gives $\lim_{x\to 0}$,\displaystylegives $\displaystyle \lim_{x\to 0}$.$\sum\limits_{x\to 0}^\infty$gives $\sum\limits_{x\to 0}^\infty$space:
a\ bgives a small space $a\ b$, whilea\quad bgives a larger space $a\quad b$,a\qquad brather larger $a\qquad b$.dots:
\ldotsgives $a_1,a_2,\ldots,a_n$ while\cdotsgives $a_1+a_2+\cdots+a_n$. Note that there are vertical dots and inclined dots:\vdotsandddotsgive $\vdots$ and $\ddots$ which are useful in matrix. be careful that\ddotis $\ddot x$ and\dddotgives $\dddot x$aligned equations:
1
2
3
4\begin{align}
y &= \sqrt {x^2} + \frac{ax^3+bx^2}{x^4+x^2} \\
&= x + \frac{ax+b}{x^2+1}\\
\end{align}is
$$
\begin{align}
y &= \sqrt {x^2} + \frac{ax^3+bx^2}{x^4+x^2} \
&= x + \frac{ax+b}{x^2+1}\
\end{align}
$$Custom command:
$ \newcommand{\SES}[3]{0 \to #1 \to #2 \to #3 \to 0} $gives $\newcommand{\SES}[3]{0 \to #1 \to #2 \to #3 \to 0}$ $\SES{A}{B}{C}$. (noting that there is a piece of code unseen before the result).\defdoes the same work:\def \ses#1#2#3{0\to #1\to #2\to #3\to 0}
18 New line
1 | a b c space space shift+enter |
a b c
a b
1 | a b c shit+enter |
a b c
a b
1 | a b c enter |
a b c
a b
Line spaces are different between using shft+enter and enter alone, having two spaces before shift+enter creates new line in exported files like pdf while not having them doesn’t.
19. 两端对齐
1 | <p style="text-align:justify; text-justify:inter-ideograph;>HTML如何让文本两端对齐HTML如何让文本两端对齐HTML如何让文本两端对齐HTML如何让文本两端对齐HTML如何让文本两端对齐HTML如何让文本两端对齐</p> |