mackdown basic grammar

Foreword

  • As some grammar can not show blog Park, recommended Typora unlock the full set, Download: https://www.typora.io/
Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式。    --摘自百度百科

I did not expect Baidu Encyclopedia has been less tricky this time so much as a brilliant explanation. Before the project has been used wordto write the document, there is a relatively large drawbacks:

  • Version control only plain text files, and word is a binary format
  • Format complicated, often need to interrupt writing to control the format
  • Separation of code and documentation, to write documents result in greater resistance

And if the mere use txt, there is no point format, and although both use html format but also added to version control, but need to spend more time on the label, and the label accounted for a larger percentage of the document difficult to read.

所以,最终的解决方案就是 **Markdown** ,作为一种轻量级的标记语言,能在非常短的时间内掌握。而且不仅可以用于写文档,还可以写博客、写简书、做一些随手笔记。Markdown文件以.md结尾,可以导出为html和PDF(需要使用的工具支持)。它是一种语法(个人认为是简化版的html),但是和html不同的是,各种解析器对其会有不同的表现。比如我的IDEA Markdown插件会把分割线显示成一条细灰线,Cmd Markdown则是显示一条虚线。所以建议保持使用一种Markdown工具和尽量使用标准语法。

Two, Markdown basic grammar

# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 最小只有六级标题

effect:

Too rough, do not be demonstrated, you copy and paste that is known! ! !

Bold

**我被加粗了**

effect:

I bolded the

Italic

*我倾斜了了*

effect:

I tilted the

Highlight

==我高亮了==

effect:

== == I highlighted the

Superscript

2^2^

effect:

2^2^

Subscript

H~2~o

effect:

H~2~o

Code references (> formula)

> hello markdown!

effect:

hello markdown!

Code:

> hello markdown!
>> hello markdown!

effect:

hello markdown!

hello markdown!

Code references ( `formula)

# 不要复制这一句话,并且去掉下面的反斜杠,谢谢!
\`\`\`python
print('hello tim')
\`\`\`

effect:

print('hello tim')

Code of the lead ( 'formula)

# 不要复制这一句话,并且去掉下面的反斜杠,谢谢!
\`print('hello tim')\`

effect:

print('hello tim')

Insert a link (link shows)

<https://www.cnblogs.com/MrYang161/>

effect:

https://www.cnblogs.com/MrYang161/

Insert (links described display)

[Mryang博客](https://www.cnblogs.com/MrYang161/ "Mryang博客")

effect:

Mryang blog

Insert Picture (links)

![](http://img.zxxk.com/2014-3/ZXXKCOM201403061200457651497.jpg)

effect:

Ordered list

1. one
2. two 
3. three

effect:

  1. one
  2. two
  3. three

Unordered list

* one
* two
* three

effect:

  • one
  • two
  • three

split line

---

effect:


2.17 table and have to have a second row, second row and column means aligned format, centered respectively; right-justified; Left):

effect:

name age sex
tim 19 male
tom 18 Female

2.18 mathematical formulas (row fitted)

内嵌数学公式$\sum_{i=1}^{10}f(i)\,\,\text{thanks}$

effect:

Embedded mathematical formulas Σ10i = 1f (i) thanksΣi = 110f (i) thanks

2.19 mathematical formula (massive)

$$
\sum_{i=1}^{10}f(i)\,\,\text{thanks}
$$

effect:

∑i=110f(i)thanks

Guess you like

Origin www.cnblogs.com/MrYang161/p/11519440.html