init
This commit is contained in:
393
演示.md
Normal file
393
演示.md
Normal file
@@ -0,0 +1,393 @@
|
||||
# 一级标题
|
||||
|
||||
## 二级标题
|
||||
|
||||
### 三级标题
|
||||
|
||||
#### 四级标题
|
||||
|
||||
##### 五级标题
|
||||
|
||||
###### 六级标题
|
||||
|
||||
|
||||
## 水平线
|
||||
|
||||
___
|
||||
|
||||
---
|
||||
|
||||
***
|
||||
|
||||
|
||||
## 排版替换
|
||||
|
||||
启用排版选项查看结果。
|
||||
|
||||
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
|
||||
|
||||
测试.. 测试... 测试..... 测试?..... 测试!....
|
||||
|
||||
!!!!!! ???? ,, -- ---
|
||||
|
||||
“智能引号,双引号”和‘单引号’
|
||||
|
||||
|
||||
## 强调
|
||||
|
||||
**这是加粗文字**
|
||||
|
||||
__这是加粗文字__
|
||||
|
||||
*这是斜体文字*
|
||||
|
||||
_这是斜体文字_
|
||||
|
||||
~~删除线~~
|
||||
|
||||
|
||||
## 引用
|
||||
|
||||
|
||||
> 引用也可以嵌套...
|
||||
>
|
||||
> > ...通过在旁边增加更多的大于号...
|
||||
> >
|
||||
> > > ...或者使用箭头之间的空格。
|
||||
|
||||
|
||||
## 列表
|
||||
|
||||
无序列表
|
||||
|
||||
+ 通过在一行开头使用`+`,`-`或`*`来创建列表
|
||||
|
||||
+ 子列表通过缩进2个空格制作:
|
||||
|
||||
- 更换标记字符强制开始新列表:
|
||||
|
||||
* 在Ac tristique libero volutpat at
|
||||
|
||||
+ Facilisis in pretium nisl aliquet
|
||||
|
||||
- Nulla volutpat aliquam velit
|
||||
|
||||
+ 非常简单!
|
||||
|
||||
有序列表
|
||||
|
||||
1. Lorem ipsum dolor sit amet
|
||||
2. Consectetur adipiscing elit
|
||||
3. Integer molestie lorem at massa
|
||||
|
||||
|
||||
1. 你可以使用顺序数字...
|
||||
2. ...或者保持所有数字为`1.`
|
||||
|
||||
带偏移的编号开始:
|
||||
|
||||
57. foo
|
||||
58. bar
|
||||
|
||||
|
||||
## 代码
|
||||
|
||||
行内 `代码`
|
||||
|
||||
缩进代码
|
||||
|
||||
// 一些评论
|
||||
代码行 1
|
||||
代码行 2
|
||||
代码行 3
|
||||
|
||||
|
||||
代码块“栅栏”
|
||||
|
||||
```
|
||||
这里填写示例文本...
|
||||
```
|
||||
|
||||
语法高亮
|
||||
|
||||
``` js
|
||||
var foo = function (bar) {
|
||||
return bar++;
|
||||
};
|
||||
|
||||
console.log(foo(5));
|
||||
```
|
||||
|
||||
## 表格
|
||||
|
||||
| 选项 | 描述 |
|
||||
| ------ | -------------------------------------- |
|
||||
| data | 供模板使用的数据文件路径。 |
|
||||
| engine | 用于处理模板的引擎。默认为Handlebars。 |
|
||||
| ext | 目标文件的扩展名。 |
|
||||
|
||||
右对齐列
|
||||
|
||||
| 选项 | 描述 |
|
||||
| -----: | -------------------------------------: |
|
||||
| data | 供模板使用的数据文件路径。 |
|
||||
| engine | 用于处理模板的引擎。默认为Handlebars。 |
|
||||
| ext | 目标文件的扩展名。 |
|
||||
|
||||
|
||||
## 链接
|
||||
|
||||
[链接文本](http://dev.nodeca.com)
|
||||
|
||||
[带标题的链接](http://nodeca.github.io/pica/demo/ "标题文本!")
|
||||
|
||||
自动转换的链接 https://github.com/nodeca/pica (启用链接化功能查看)
|
||||
|
||||
|
||||
## 图像
|
||||
|
||||

|
||||

|
||||
|
||||
像链接一样,图像也有脚注样式的语法
|
||||
|
||||
![替代文本][id]
|
||||
|
||||
文档后面用来定义URL位置的引用:
|
||||
|
||||
[id]: https://octodex.github.com/images/dojocat.jpg "道场猫"
|
||||
|
||||
|
||||
## 插件
|
||||
|
||||
`markdown-it`的杀手锏是对[语法插件](https://www.npmjs.org/browse/keyword/markdown-it-plugin)的非常有效支持。
|
||||
|
||||
|
||||
### [表情符号](https://github.com/markdown-it/markdown-it-emoji)
|
||||
|
||||
> 经典标记::wink: :cry: :laughing: :yum:
|
||||
>
|
||||
> 快捷方式(表情图标)::-) :-( 8-) ;)
|
||||
|
||||
查看[如何更改输出](https://github.com/markdown-it/markdown-it-emoji#change-output) 使用twemoji。
|
||||
|
||||
### [下标](https://github.com/markdown-it/markdown-it-sub) / [上标](https://github.com/markdown-it/markdown-it-sup)
|
||||
|
||||
- 19^th^
|
||||
- H~2~O
|
||||
|
||||
|
||||
### [\<mark>](https://github.com/markdown-it/markdown-it-mark)
|
||||
|
||||
==标记文本==
|
||||
|
||||
|
||||
### [脚注](https://github.com/markdown-it/markdown-it-footnote)
|
||||
|
||||
脚注1链接[^first]。
|
||||
|
||||
脚注2链接[^second]。
|
||||
|
||||
行内脚注^[行内脚注文本]定义。
|
||||
|
||||
重复的脚注引用[^second]。
|
||||
|
||||
[^first]: 脚注**可以包含标记**
|
||||
|
||||
并且包含多个段落。
|
||||
|
||||
[^second]: 脚注文本。
|
||||
|
||||
|
||||
|
||||
# h1 Heading 8-)
|
||||
|
||||
## h2 Heading
|
||||
### h3 Heading
|
||||
#### h4 Heading
|
||||
##### h5 Heading
|
||||
###### h6 Heading
|
||||
|
||||
|
||||
## Horizontal Rules
|
||||
|
||||
___
|
||||
|
||||
---
|
||||
|
||||
***
|
||||
|
||||
|
||||
## Typographic replacements
|
||||
|
||||
Enable typographer option to see result.
|
||||
|
||||
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
|
||||
|
||||
test.. test... test..... test?..... test!....
|
||||
|
||||
!!!!!! ???? ,, -- ---
|
||||
|
||||
"Smartypants, double quotes" and 'single quotes'
|
||||
|
||||
|
||||
## Emphasis
|
||||
|
||||
**This is bold text**
|
||||
|
||||
__This is bold text__
|
||||
|
||||
*This is italic text*
|
||||
|
||||
_This is italic text_
|
||||
|
||||
~~Strikethrough~~
|
||||
|
||||
|
||||
## Blockquotes
|
||||
|
||||
|
||||
> Blockquotes can also be nested...
|
||||
> > ...by using additional greater-than signs right next to each other...
|
||||
> > > ...or with spaces between arrows.
|
||||
|
||||
|
||||
## Lists
|
||||
|
||||
Unordered
|
||||
|
||||
+ Create a list by starting a line with `+`, `-`, or `*`
|
||||
+ Sub-lists are made by indenting 2 spaces:
|
||||
- Marker character change forces new list start:
|
||||
* Ac tristique libero volutpat at
|
||||
+ Facilisis in pretium nisl aliquet
|
||||
|
||||
- Nulla volutpat aliquam velit
|
||||
+ Very easy!
|
||||
|
||||
Ordered
|
||||
|
||||
1. Lorem ipsum dolor sit amet
|
||||
2. Consectetur adipiscing elit
|
||||
3. Integer molestie lorem at massa
|
||||
|
||||
|
||||
1. You can use sequential numbers...
|
||||
1. ...or keep all the numbers as `1.`
|
||||
|
||||
Start numbering with offset:
|
||||
|
||||
57. foo
|
||||
1. bar
|
||||
|
||||
|
||||
## Code
|
||||
|
||||
Inline `code`
|
||||
|
||||
Indented code
|
||||
|
||||
// Some comments
|
||||
line 1 of code
|
||||
line 2 of code
|
||||
line 3 of code
|
||||
|
||||
|
||||
Block code "fences"
|
||||
|
||||
```
|
||||
Sample text here...
|
||||
```
|
||||
|
||||
Syntax highlighting
|
||||
|
||||
``` js
|
||||
var foo = function (bar) {
|
||||
return bar++;
|
||||
};
|
||||
|
||||
console.log(foo(5));
|
||||
```
|
||||
|
||||
## Tables
|
||||
|
||||
| Option | Description |
|
||||
| ------ | ------------------------------------------------------------ |
|
||||
| data | path to data files to supply the data that will be passed into templates. |
|
||||
| engine | engine to be used for processing templates. Handlebars is the default. |
|
||||
| ext | extension to be used for dest files. |
|
||||
|
||||
Right aligned columns
|
||||
|
||||
| Option | Description |
|
||||
| -----: | -----------------------------------------------------------: |
|
||||
| data | path to data files to supply the data that will be passed into templates. |
|
||||
| engine | engine to be used for processing templates. Handlebars is the default. |
|
||||
| ext | extension to be used for dest files. |
|
||||
|
||||
|
||||
## Links
|
||||
|
||||
[link text](http://dev.nodeca.com)
|
||||
|
||||
[link with title](http://nodeca.github.io/pica/demo/ "title text!")
|
||||
|
||||
Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
|
||||
|
||||
|
||||
## Images
|
||||
|
||||

|
||||

|
||||
|
||||
Like links, Images also have a footnote style syntax
|
||||
|
||||
![Alt text][id]
|
||||
|
||||
With a reference later in the document defining the URL location:
|
||||
|
||||
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
|
||||
|
||||
|
||||
## Plugins
|
||||
|
||||
The killer feature of `markdown-it` is very effective support of
|
||||
[syntax plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin).
|
||||
|
||||
|
||||
### [Emojies](https://github.com/markdown-it/markdown-it-emoji)
|
||||
|
||||
> Classic markup: :wink: :cry: :laughing: :yum:
|
||||
>
|
||||
> Shortcuts (emoticons): :-) :-( 8-) ;)
|
||||
|
||||
see [how to change output](https://github.com/markdown-it/markdown-it-emoji#change-output) with twemoji.
|
||||
|
||||
|
||||
### [Subscript](https://github.com/markdown-it/markdown-it-sub) / [Superscript](https://github.com/markdown-it/markdown-it-sup)
|
||||
|
||||
- 19^th^
|
||||
- H~2~O
|
||||
|
||||
|
||||
### [\<mark>](https://github.com/markdown-it/markdown-it-mark)
|
||||
|
||||
==Marked text==
|
||||
|
||||
|
||||
### [Footnotes](https://github.com/markdown-it/markdown-it-footnote)
|
||||
|
||||
Footnote 1 link[^first].
|
||||
|
||||
Footnote 2 link[^second].
|
||||
|
||||
Inline footnote^[Text of inline footnote] definition.
|
||||
|
||||
Duplicated footnote reference[^second].
|
||||
|
||||
[^first]: Footnote **can have markup**
|
||||
|
||||
and multiple paragraphs.
|
||||
|
||||
[^second]: Footnote text.
|
||||
|
||||
Reference in New Issue
Block a user