7.6 KiB
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
水平线
排版替换
启用排版选项查看结果。
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
测试.. 测试... 测试..... 测试?..... 测试!....
!!!!!! ???? ,, -- ---
“智能引号,双引号”和‘单引号’
强调
这是加粗文字
这是加粗文字
这是斜体文字
这是斜体文字
删除线
引用
引用也可以嵌套...
...通过在旁边增加更多的大于号...
...或者使用箭头之间的空格。
列表
无序列表
-
通过在一行开头使用
+,-或*来创建列表 -
子列表通过缩进2个空格制作:
-
更换标记字符强制开始新列表:
- 在Ac tristique libero volutpat at
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
-
-
非常简单!
有序列表
-
Lorem ipsum dolor sit amet
-
Consectetur adipiscing elit
-
Integer molestie lorem at massa
-
你可以使用顺序数字...
-
...或者保持所有数字为
1.
带偏移的编号开始:
- foo
- bar
代码
行内 代码
缩进代码
// 一些评论
代码行 1
代码行 2
代码行 3
代码块“栅栏”
这里填写示例文本...
语法高亮
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
表格
| 选项 | 描述 |
|---|---|
| data | 供模板使用的数据文件路径。 |
| engine | 用于处理模板的引擎。默认为Handlebars。 |
| ext | 目标文件的扩展名。 |
右对齐列
| 选项 | 描述 |
|---|---|
| data | 供模板使用的数据文件路径。 |
| engine | 用于处理模板的引擎。默认为Handlebars。 |
| ext | 目标文件的扩展名。 |
链接
自动转换的链接 https://github.com/nodeca/pica (启用链接化功能查看)
图像
像链接一样,图像也有脚注样式的语法
文档后面用来定义URL位置的引用:
插件
markdown-it的杀手锏是对语法插件的非常有效支持。
表情符号
经典标记:😉 😢 😆 😋
快捷方式(表情图标)::-) :-( 8-) ;)
查看如何更改输出 使用twemoji。
下标 / 上标
- 19^th^
- H
2O
<mark>
==标记文本==
脚注
脚注1链接1 。
脚注2链接2 。
行内脚注^[行内脚注文本]定义。
重复的脚注引用2 。
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
-
Lorem ipsum dolor sit amet
-
Consectetur adipiscing elit
-
Integer molestie lorem at massa
-
You can use sequential numbers...
-
...or keep all the numbers as
1.
Start numbering with offset:
- foo
- 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
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
Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
Images
Like links, Images also have a footnote style syntax
With a reference later in the document defining the URL location:
Plugins
The killer feature of markdown-it is very effective support of
syntax plugins.
Emojies
Classic markup: 😉 😢 😆 😋
Shortcuts (emoticons): :-) :-( 8-) ;)
see how to change output with twemoji.
Subscript / Superscript
- 19^th^
- H
2O
<mark>
==Marked text==
Footnotes
Footnote 1 link1 .
Footnote 2 link2 .
Inline footnote^[Text of inline footnote] definition.
Duplicated footnote reference2 .


