Markdown笔记
基本语法
以下为Markdown的基本元素,所有Markdown应用程序都支持这些元素。
| 元素 | Markdown语法 |
|---|---|
| 标题(Heading) | # H1 ## H2 ### H3 |
| 粗体(Bold) | **bold text** / __bold text__ |
| 斜体(Italic) | *italicized text* |
| 引用块(Blockquote) | > blockquote |
| 有序列表(Ordered List) | 1. First item 2. Second item 3. Third item |
| 无序列表(Unordered List) | First item Second item Third item |
| 代码(Code) | `Code` |
| 分割线(Horizontal Rule) | --- |
| 链接(Link) | [title](https:www.example.com) |
| 图片(Image) |  |
扩展语法
以下元素通过添加往外的功能扩展了基本语法,但并非所有Markdown应用程序都支持。
| 元素 | Markdown语法 |
|---|---|
| 表格(Table) | | Syntax | Description | | --- | --- | | Header | Title | |
| 代码块(Fenced Code Block) | ``` { “firstName”: “xxx”, “lastName”: “xxx” } ``` |
| 脚注(Footnote) | Here’s a sentence with a footnote. [^1] [^1]:This is the footnote. |
| 标题编号(Heading ID) | ### My Great Heading {#custom-id} |
| 定义列表(Definition List) | term: definition |
| 删除线(Strikethrough) | ~~The world is flat.~~ |
| 任务列表(Task List) | - [x] Write the press release- [ ] Update the website - [ ] Contact the media |
个人总结
| 需求 | Markdown语法 | 效果 |
|---|---|---|
| 下划线 | <u>文字</u> | 文字 |
| 表内换行 | a<br>b | a b |
交叉引用
- 方式1
第一种引用方式是标准的markdown引用,非常简洁可以跳转。
%正文:
BLEU[^1]是一种计算n-gram短语的加权平均值来评估两个句子共现频率的评估方法。
%引用:
[^1]:Papineni, Kishore, Salim Roukos, Todd Ward, and Wei-Jing Zhu. "Bleu: a method for automatic evaluation of machine translation." In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311-318. 2002.
- 方式2
第二种是通过标签符来进行引用,也可以完成跳转。
%正文:
BLEU [<sup>[2]</sup>](#R1) 是一种计算n-gram短语的加权平均值来评估两个句子共现频率的评估方法。
%引用:
<div><a name="R1"></a>
[1] Papineni, Kishore, Salim Roukos, Todd Ward, and Wei-Jing Zhu. "Bleu: a method for automatic evaluation of machine translation." In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311-318. 2002.
</div>