参考:https://keatonlao.gitee.io/a-study-note-for-markdown/syntax/
段落内换行使用换行符
段落内换行使用换行符
这是引用
这是第二个引用
无序列表
- a
- b
- c
任务列表
- hello
- a task list item
- list syntax required
- normal formatting, @mentions, #1234 refs
- incomplete
- completed
代码块
echo hello;
表格
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -----:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
最左侧的冒号表示左对齐的列(默认即为左对齐);最右边的冒号表示右对齐的列;两侧的冒号表示中心对齐的列。
Left-Aligned | Center Aligned | Right Aligned |
---|---|---|
col 3 is | some wordy text | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
水平分割线
可用三个以上的减号、星号、底线在一空行中建立一条分隔线,中间可以插入空格,但行内不能有其他东西。
分割线
链接
要创建行内链接,请在链接文本的右方括号后立即使用一组常规括号 ()。在括号内,将您想要链接指向的 URL 以及链接的可选标题放在引号中。
This is [an example](http://example.com/ "Title") inline link.
[This link](http://example.net/) has no title attribute.
参考链接
参考链接使用第二组方括号,在方括号内放置一个您选择的标签来标识(identify)链接:
[Google][]
And then define the link:
[Google]: http://google.com/
图片

强调
Markdown 把星号(*)和下划线(_)作为强调标示符。用一个 * 或 _ 包裹的文本将被一个 HTML <em> 标签包裹。
用两个*将使其包裹的内容被 HTML <strong> 标签包裹。
三个*是加粗斜体。
*这是斜体*
**这是加粗**
***这是加粗斜体***
代码
要表明行内代码,请用反引号引起来(`)。
Use the printf()
function.
删除线
~~删除线~~
HTML
<span style="color:red">this text is red</span>
您可以使用 HTML 样式化纯 Markdown 不支持的内容。例如,使用 this text is red 来添加红色文本。
折叠内容
使用 HTML 5 <details> 标签,指定用户可以按需打开和关闭的其他详细信息。
<details> <summary>Title</summary>
Contents ...
</details>
Title
Contents …
内容里面可以嵌套使用 Markdown 语法和 HTML 语法。
...