Markdown笔记1

标题

Markdown 支持两种标题的语法,类 Setext 和类 atx 形式。
类 Setext形式使用 = 和 - 标记一级和二级标题;类 Atx 形式则是在行首插入 1 到 6 个 # ,对应到标题 1 到 6 阶。

类 Setext形式示例

1
2
3
4
5
一级标题
=================

二级标题
-----------------

效果如下所示:

一级标题

二级标题

类 Atx 形式示例

1
2
3
4
5
6
# h1
## h2
### h3
#### h4
##### h5
###### h6

效果如下所示:

h1

h2

h3

h4

h5
h6

小技巧

VSCode 可以用Ctrl+Shift+V快捷键来对md文件进行预览
不同的 Markdown 应用程序处理 # 和标题之间的空格方式并不一致。为了兼容考虑,请用一个空格在 # 和标题之间进行分隔。

参考资料与文献

1、https://www.w3cschool.cn/markdownyfsm/ysu1e1.html

2、https://www.runoob.com/markdown/md-paragraph.html

3、https://markdown.com.cn/cheat-sheet.html

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2022-2024 CPY
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信