817 words
4 minutes
Markdown_Extended_Syntax
表格
- 使用三个或多个连字符(
---),使用管道(|)分隔系列. - 管道与文本之间要有空格。
| Syntax | Description | | --------- | ----------- | | Header | Title | | Paragraph | Text |输出如下:
| Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
对齐
- 在连字符的左侧,右侧,两侧添加冒号 ( : ),将文本对齐到左侧,右侧,中心.
| Left alignment | Center alignment | Right alignment || :------------- | :---------------:| --------------: || Content | Content | Content || Content | Content | Content |输出如下:
| Left alignment | Center alignment | Right alignment |
|---|---|---|
| Content | Content | Content |
| Content | Content | Content |
格式化表格中的文字
- 可以丰表格中设置文本格式。如链接,代码(仅反引号( ` )中的单词或短语,不是代码块) 和强调。
- 不支持标题,块引用,列表,水平规则,图像或HTML标签。
在表中转义管道字符
- 可以使用表中的HTML字符代码(
|)在表中显示竖线(|)字符。
Markdown 脚注
脚注可以添加注释和参考,而不会使文档正文混乱。
- 创建脚注: 在方括号 (
[^xx]) 内符号各标识符。标识符可以是数字或单词,但不能包含空格或制表符。 - 在方括号内使用另一个插入符号和数字,标识符,并用冒号和文本相连 (
[^xx]: content.)。可以放在除列表、块引号和表之类的其他元素这外的任何位置。
像这样:
Here's a simple footnote,[^1] and here's a longer one.[^bignote][^1]: This is the first footnote.[^bignote]: Here's one with multiple paragraphs and code. Indent paragraphs to include them in the footnote. `{ my code }` Add as many paragraphs as you like.Markdown 标题编号
- 添加自定义ID可以直接链接到标题并使用CSS对其进行修改。
- 在与标题相同的行内用大括号括起该自定义ID。
- 通过创建带有数字符号 (
#) 和自定义标题ID,可以链接到文件中具有自定义ID的标题。
### Heading {#custom-id}Markdown 定义列表
在第一行上键入术语。在下一行键入一个冒号跟一个空格和定义。
像这样:
First Term: This is the difinition of the first term.Secend Term: This is one definition of the second term.: This is another definition of the second term.输出如下:
First Term
: This is the difinition of the first term.
Secend Term
: This is one definition of the second term.
: This is another definition of the second term.
Markdown 任务列表语法
在任务列表之前添加连字符 (-) 和方括号 [ ],并在方括号前面各中间添加一个空格。要选择一个复选框,在方括号 [x] 之间加 x 。
- [x] Write the press release- [ ] update the website- [ ] Contact the media输出如下:
- Write the press release
- update the website
- Contact the media
使用 Emoji 表情
以冒号开头和结尾,中间包含表情符号的名称。
:tent: 显示 ⛺
:joy: 显示 😂
更多表情符号参考这里
Markdown 警告
Markdown没有自带警告框功能,但可以用 引用块 ( > ) + Emoji + 加粗模拟:
> :waring: **警告:** 不要按下红色按钮!> :memo: **注意:** 前方有坑> :bulb: **提示:** 现在是早八渲染效果:
⚠️ 警告: 不要按下红色按钮!
📝 注意: 前方有坑
💡 提示: 现在是早八
Footnotes
Markdown_Extended_Syntax
https://infini.cv/posts/markdown_extended_syntax/ Some information may be outdated