Markdown
Standard
quote
- 代码直接缩进,不用标记包围也行,如果需要发表,再作处理,如需要高亮
- 引用是内联式标记,要有换行
- 使用 4 个空格缩进,尤其是在用嵌套列表时
Write better Markdown - BrettTerpstra.com
GFM
- [x] @mentions, #refs, links, formatting, and
tagssupported
First Header | Second Header |
---|---|
Content from cell 1 | Content from cell 2 |
Content in the first column | Content in the second column |
diff
- dontDoThisThing()
+ doThisInstead()
辅助工具
表格生成,支持粘贴 xls/csv 内容(菜单 File-Paste) Markdown Tables generator - TablesGenerator.com
markdown 与其他格式互转 Markdown 表格 编辑和生成器 - 在线表格转换工具
Vim 配合
特性 | markdown-preview | Typora |
---|---|---|
触发 | :MarkdownPreview | <leader>tp |
实时反馈 | 1 | |
侧栏 Toc | 1 |
Gitbook
与 GFM 不一致的一些地方
.号作前导缩进
换行要用双空格
语法参考
js
function syntaxHighlighting() {
var n = 33
var s = 'hello, こんにちは'
console.log(s)
}
- plain
strikethroughinline code
- Numbered list
- Numbered sub-list
- Numbered sub-sub-list
- Numbered sub-list
- Link
An image:
Block quote. With some
markdown
.
If TeX Math support is enabled, this is the quadratic equation: $-b \pm \sqrt{b^2 - 4ac} \over 2a$
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
Tables | Are | Cool |
---|---|---|
column 3 is | right-aligned | $1600 |
column 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Here's a horizontal rule:
code block
with no highlighting
js
const a = 1