近日把博客从 Wordpress 迁移到了 typecho,做个学习 markdown 语法的笔记留作备用。
参考了文章:
https://wangrufei.com/archives/226/
https://markdown.com.cn/basic-syntax/
分割线
在单独一行上使用三个或多个连续的 * 或 -
例如 ---
斜体(Italic)
在单词或短语前后添加一个星号(asterisk)或下划线(underscore)。
例如 Italicized text is the *cat's meow*.
粗体(Bold)
要加粗文本,请在单词或短语的前后各添加两个星号(asterisks)或下划线(underscores)。如需加粗一个单词或短语的中间部分用以表示强调的话,请在要加粗部分的两侧各添加两个星号(asterisks)。
例如 I just love **bold text**.
Love**is**bold
粗斜体
直接前后打3个 *
,即可得到粗斜体。
例如 ***粗斜体***
多个段落的块引用
块引用可以包含多个段落。为段落之间的空白行添加一个 >
符号。
> Dorothy followed her through many of the beautiful rooms in her castle.
>
> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
渲染效果如下:
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
嵌套块引用
块引用可以嵌套。在要嵌套的段落前添加一个 >>
符号。
> Dorothy followed her through many of the beautiful rooms in her castle.
>
>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
渲染效果如下:
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
转义反引号
如果你要表示为代码的单词或短语中包含一个或多个反引号,则可以通过将单词或短语包裹在双反引号中。
``Use `code` in your Markdown file.``
预览效果 Use `code` in your Markdown file.
插入图片
插入图片Markdown语法代码:![图片alt](图片链接 "图片title")
。
例如 ![这是图片](/assets/img/philly-magic-garden.jpg "Magic Gardens")