author: Andy Elizabeth
title: markdown教程
description: 最全的教程
typora-root-url:/User/Abner/Website/typora.io/
Markdown
markdown 式一种轻量级的语言,用来编辑纯文本。用它可以轻松排版出你想要的文本格式。可以用来写博客,写论文等。
文章目录
块元素
段落和换行符
段落是一行或多行连续的文本。在markdown中,段落被两行或以上分隔开。但在很多编辑器中,你只需要一个回车就可以创建新的段落。
你可以使用Shift
+Return
创建一个单行换行符。如果你的编辑器不支持,那么你可以使用<br/>
,或者仅仅在末尾敲击两个空格
标题
在markdown中,标题分六个等级,使用#
区分。
# this is an h1
## this is an h2
###### this is an h6
块引用
> This is a blockquote with two paragraphs. This is first paragraph.
>
>> This is second pragraph. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
> This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.
This is a blockquote with two paragraphs. This is first paragraph.
This is second pragraph. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.
在你输入>
后会生成代码块,嵌套代码块只需要连续输入>
列表
输入* list item 1
,将会创建一个无序列表,*
可以使用+
或-
代替
- list item 1
- list item 2
- list item 3
输入1. list item 1
,将会创建一个有序列表
- list item 1
- list item 2
- list item 3
源码:
## un-ordered list
* Red
* Green
* Blue
## ordered list
1. Red
2. Green
3. Blue
任务列表
[] 和 [x] 分别代表未完成和已经完成的列表。就像这样:
- [ ] a task list item
- [ ] list syntax required
- [ ] normal **formatting**, @mentions, #1234 refs
- [ ] incomplete
- [x] completed
- a task list item
- list syntax required
- normal formatting, @mentions, #1234 refs
- incomplete
- completed
复选框是可以点击的。
数学块
你可以使用使用MathJax渲染Latex
公式
你需要使用$$
并创建return
,会激发出数学表达的区域
$$
\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0
\\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\\
\end{vmatrix}
$$
V 1 × V 2 = ∣ i j k ∂ X ∂ u ∂ Y ∂ u 0 ∂ X ∂ v ∂ Y ∂ v 0 ∣ \mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\ \end{vmatrix} V1×V2