Markdown
markdown-it 插件开发
markdown 语法
目录 Table of Contents
- 语法
[[toc]]
1
- 示例
表格 Tables
- 语法
| Tables | Are | Cool |
| ------------- | :-----------: | ----: |
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
1
2
3
4
5
2
3
4
5
- 示例
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
表情 Emoji 🎉
- 语法
:tada: :100:
1
- 示例
🎉 💯
提示 Default Title
- 语法
::: tip
This is a tip
:::
::: warning
This is a warning
:::
1
2
3
4
5
6
7
2
3
4
5
6
7
- 示例
TIP
This is a tip
WARNING
This is a warning
WARNING
This is a dangerous warning
自定义提示 Custom Title
STOP
Danger zone, do not proceed
高亮代码 Highlighting
高亮代码,并指定标记行
Line Highlighting in Code Blocks
- 语法
js{3-5}
- 示例
export default {
data () {
return {
msg: 'Highlighted!'
}
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7