【 星 辰 · 第 一 条 约 定 】

【 星 辰 · 第 一 条 约 定 】

1、段落,标题,区块代码

  • 一个段落是由一个以上的连接的行句组成,而一个以上的空行则会划分出不同的段落(空行的定义是显示上看起来像是空行,就被视为空行,例如有一行只有空白和 tab,那该行也会被视为空行),一般的段落不需要用空白或换行缩进。
  • Markdown 支持两种标题的语法,Setextatx 形式。Setext 形式是用底线的形式,利用 = (最高阶标题)和 - (第二阶标题),Atx 形式在行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶。一级标题用一个#,两级用两个以此类推...
  • 区块引用则使用email形式的‘>'角括号
A First Level Heade
====================
A Second Level Header
---------------------

Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.

The quick brown fox jumped over the lazy
dog's back.
### Header 3

> This is a blockquote.
> 
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote

2、修辞和强调

Markdown使用星号和底线来来标记需要强调的区域。一个星号或一条底线是斜体,两个星号或者两条底线是加粗,三个星号或三条底线是斜体加粗

Some of these words *are emphasized*.
Some of these words _are emphasized also_.
Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.
***aha***___yes___

3、列表

  • 无序列表使用星号,加号和减号来作为列表的项目标记
*one
+two
-three
  • 有序列表则是使用一般的数字接着一个英文句点作为项目标记,
1.one
2.two
3.three
  • 若你在项目之间插入空行,那项目的内容会用

    包起来,你也可在一个项目内放多个段落,只要在他面前缩排四个空白或一个tab

*A list item
    with multiple paragraphs
*two list item

4、链接

Markdown支持两种形式的链接语法:行内和参考两种形式,两种都是使用叫括号来把文字转成链接。

行内直接在后面用括号直接接上链接:

This is an [example link](http://example.com/)

参考形式的链接让你可为链接定一个名称,之后你可以在文件的其他地方定义该连接内容:

I get 10 times more traffic from [Google][http://google.com/"Google"] than from [Yahoo][http://search.yahoo.com/Yahoo Search] 

I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].

[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"

title属性是选择性的,连接名称可用字幕,数字和空格,但不分大小写

I start my morning with a cup of coffee and
[The New York Times][NY Times].

[ny times]: http://www.nytimes.com/

5、图片

与链接很像,title是选择性的

[替代文字][图片链接]

行内形式:

![alt text](/path/to/img.jpg "Title")

参考形式:

![alt text][id]

[id]: /path/to/img.jpg "Title"

6、代码

在一般的段落文字中,你可以使用反引号来标记代码区段,区段内&<>都会被自动转成HTML实体,然那个i可以很容易在代码区段插入HTML码

I strongly recommend against using any `<blink>` tags.

I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.

若要建立一个已经格式化好的代码区域,只要每行都缩进4个空格或一个tab就行了,而&<>也一样会自动转成HTML实体。

If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:

<blockquote>
<p>For example.</p>
</blockquote>

或者用三个```在输入你所输入代码的语言就可以开辟一个代码块

​```c#   <===例如这样
#include<stdio>
int mai()
  {
  
}

7、表格

用Tupora软件中右键插入

| 1    | 1    |      |
| ---- | ---- | ---- |
|      |      |      |
1 1

8、数学公式

拥Typora软件则右键插入数学公式
或者在公式的上下两行加入两个$$

$$
Y=x^2
$$



$$
Y=x^2
$$



posted @ 2017-02-12 11:24  陈阿锦  阅读(125)  评论(2编辑  收藏  举报