md basic grammar summary

md is the Markdown, Markdown's goal is to achieve "easy to read and write," readability, however, is the most important. In fact, the underlying md eventually we will write the html tags into a syntax

-------------------------------- ---------------- let's start --------------------

1. Title

H1 #
## H2
### H3
#### H4
##### H5
###### H6
(Note: The text between the # and must have at least one space)


H1 and H2 at the same time there is another way

H1
=====
H2
-------

(Note: Here "=" and "-" is also the number of at least one, but immediately next line of text)

See renderings ↓

 

 2. List

 Unordered list with an asterisk, plus or minus sign (* + -) mark as a list:

 Direct plug-↓

Ordered list using the number followed by a period English:

 

 Combination

 

 3. The text stressed

Markdown asterisk ( *) and the bottom line ( _) as a mark emphasized word symbols are  * or  _ terms will be surrounded by converted to  <em> surround the label, with two  * or  _wrapped, it will be transformed into <strong>

~~ strikethrough, wrapped with two wavy lines

 

 4. Block Code and Description

Careful small partners can already be seen above with> greater-than symbol, is the block description

Code block is wrapped `backtick

`` `Large block wrapped three backtick

 

 5. Links and references pictures

Markdown syntax supports two forms of links: inline and reference type two forms. Either way, the link text is with [square brackets] to mark.

1.行内式:只要在方块括号后面紧接着圆括号并插入网址链接即可,如果你还想要加上链接的 title 文字,只要在网址后面,用双引号把 title 文字包起来即可

 

2.参考式:在链接文字的括号后面再接上另一个方括号,而在第二个方括号里面要填入用以辨识链接的标记

 

3.图片,也是分为行内式和参考式

![图片文字](url)   与链接一样只是在开头多了个!

 

 

 6.分割线

 分割线可以由* - _(星号,减号,底线)这3个符号的至少3个符号表示,注意至少要3个,且不需要连续,有空格也可以

 

7.表格

 用:的不同位置来改变对齐方式,默认左对齐(:-),右对齐(-:),居中对齐(:-:)

 还可以简写

 

转义:

 Markdown 支持以下这些符号前面加上反斜杠来帮助插入普通的符号:

\   反斜线
`   反引号
*   星号
_   底线
{}  花括号
[]  方括号
()  括弧
#   井字号
+   加号
-   减号
.   英文句点
!   惊叹号

 

Guess you like

Origin www.cnblogs.com/bobo1/p/10929539.html