Markdown Tutorial(Typora-Specific)
1. Headers
Up to six titles, before adding the title #
as a marker. Note that there are spaces between the mark and the title of the content:
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
It is shown below:
This is a title
This is the second title
This three-stage title
This is a four title
This is a five title
This is the six Title
2. with paragraphs newline
Wrap in the segment:
2 a tick carriage (Typora unavailable), Typora using
Shift
+Enter
may be implemented wrap.use
br
This is<br> paragraph one. And this is paragraph two.
It is shown below:
This is
paragraph one.And this is paragraph two.
Paragraph: Spacer segment with one or more blank lines, as shown below
This is Paragraph1
Here is Another
Is shown below
This is Paragraph1
Here is Another
3. references (Blockquotes)
The first use of the line \>
mark, the next line without \>
will continue to quote:
> This is a comment
This is another comment
It is shown below:
This is a comment
This is a comment too
Multi-level references:
> This is a comment
> This is another comment
> Blabla
It is shown below:
This is a comment
This is another comment
Blablabla
4. List
Unordered list
Use -
or +
or *
as markers (equivalent):
- use '-' as mark
+ or use '+' as mark
* or use '*' as mark
It is shown below:
use '-' as mark
or use '+' as mark
or use '*' as mark
Labeled target nested referred preceded four spaces or a tab, nested lists may be used:
+ 1
+ 2
+ 3
It is shown below:
- 1
- 2
- 3
- 2
Ordered list
Tag number as:
1. item1
2. item1
1. item 2.1
2. item 2.2
- item1
- item2
- item 2.1
- item 2.2
Task List
This is the Markdown syntax expansion, not all browsers can support software. To generate a list of results can be checked:
- [ ] Eat
- [x] Code
- [x] HTML
- [x] CSS
- [x] JavaScript
- [ ] Sleep
Results are as follows (in screenshot Typora):
The dividing line
Three or more *
, or +
or _
draw dividing lines:
***
+++
___
+++
You can also use HTML tags directly <hr>
.
6. fonts and word mark
Use *
or _
surrounding the text italic text, use **
or __
enclosing implemented in bold text, both can be used simultaneously. When using both paired and the original content needs to be displayed, using the escape \*
or \_
:
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
_You **can** combine them_
Results are as follows:
This text will be italic
This will also be italic
This text will be bold
This will also be bold
You can combine them
Underline, strikethrough
Markdown does not support such marks native syntax, but you can use Markdown provided by Github and other expansion or directly using HTML syntax provides:
<u>Underlined Text</u>
~~DELETED~~
Underlined Text
DELETED
Font settings
Use HTML tag in Markdown is acceptable, by setting <font>
to further set the font:
<font size="5" color="red">This is some text!</font>
This is some text!
7. Hyperlinks
Format [link text](URL "Optional title")
, is available '
, or "
. E.g:
[MyBlog](https://www.cnblogs.com/wyzersblog/ "ddkk64")
[icon.png](./images/icon.png)
implicit link name
[Google][]
这样可以使代码更加整洁
[Google]: http://google.com/
AUTOMATIC LINKS
Use <>
include the URL or email address will be automatically converted to hyperlinks, will use the URL as link text.
<http://example.com/>
For the e-mail address, Markdown will do some random encoding process in order to prevent spam robots to collect information 1 :
<[email protected]>
8. Picture
Inline type syntax
![Alt text](https://pic.cnblogs.com/avatar/1611794/20191201214317.png)
![Alt text](/path/to/img.jpg "Optional title")
Grammar reference type
![Alt text][id]
这样可以使代码更加整洁
[id]: url/to/image "Optional title attribute"
This will make the code more clean
Image properties
Standard markdown syntax does not provide image properties changes, but you can use the HTML <img>
attributes to be modified.
9. Latex mathematical formula input
Markdown itself does not support rendered with mathematical formulas , mathematical formula to be used in Markdown document, there are several options, but not limited to, the following:
- Support Latex enter the formula editor, such as Typora and so on. This article is written in Typora.
- Rendering reference outside the chain, such as the need to use this manner GitHub
Blog Park Markdown support Latex Math Input:
内联的公式 $\sin(\alpha+\beta)=\sin\alpha\cos\beta+\cos\alpha\sin\beta$
Formula inline \ (\ sin (\ alpha + \ beta) = \ sin \ alpha \ cos \ beta + \ cos \ alpha \ sin \ beta \)
**(算数-均值不等式)**设$a_1,a_2,...,a_n$为正数,有
$$
\frac{n}{\sum_{k=1}^{n}\frac{1}{a_k}} \le \sqrt[n]{a_1a_2...a_n} \le \frac{1}{n}\sum_{k=1}^{n}a_k \tag{1.1}
$$
当且仅当 $a_1=a_2=..=a_n$ 取等号。
(Arithmetic Mean - Inequality) disposed \ (a_1, a_2, ..., a_n \) is positive, there is
\ [\ frac {n} { \ sum_ {k = 1} ^ {n} \ frac {1} { a_k}} \ le \ sqrt [
n] {a_1a_2 ... a_n} \ le \ frac {1} {n} \ sum_ {k = 1} ^ {n} a_k \ tag {1.1} \] iff \ (a_1 = a_2 = .. = a_n \) with equality.
10. Form
Form also belongs to expand grammar.
Used |
to separate different cells, use -
to separate the header and the other lines:
First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column1 |
11. Code
//EVERYTHING
I tried using Markdown preview blog park, and did not find any encryption. ↩