Markdown标题语法
标题使用 # 号来表示,符号数量代表标题大小,一个 # 代表一级标题,两个 ## 代表二级标题,以此类推,为保证兼容性,# 和标题之间用空格进行分隔。
Markdown段落语法
创建段落使用空白行将一行或多行文本进行分隔,不要使用空格或制表符缩进,如:
Don’t put tabs or spaces in front of your paragraphs.
Keep lines left-aligned like this.
Markdown段落语法
行末添加两个或多个空格(结尾空格)回车创建换行,为保证兼容性在行尾添加结尾空格或HTML的<br>
标签来实现换行。
Markdown强调语法
粗体
文本前后各添加两个星号或者下划线(出于兼容性考虑,直接使用星号),如:
Love **is** bold.
显示效果: Love is bold.
斜体
文本前后各添加一个星号或者下划线,如:
A *cat* meow
显示效果: A cat meow
A _cat_ meow
显示效果:A cat meow
粗体和斜体
出于兼容性考虑,在文本前后各添加三个星号,如:
This isreally ***very*** important text.
显示效果:
This isreally very important text.
Markdown引用语法
创建块引用,在段落前添加 > 符号,如:
> Dorothy followed her through many of the beautiful rooms in her castle.
效果:
Dorothy followed her through many of the beautiful rooms in her castle.
多个段落的块引用,在段落之间的空白行添加 > 符号:
> Dorothy followed her through man