markdown 语法记录
链接
[显示文本](链接地址)
![](图片链接地址)
粗体斜体
用两个 * 包含一段文本就是粗体的语法,用一个 * 包含一段文本就是斜体的语法
markdown 设置页面内链接,即锚点
看到 openresty 的 readme 有Table of Contents
,之前没见到过 markdown 这样的语法,研究了一下。
github 自动把标题设置位锚点,标准的 markdown 需要自己添加 html 格式,如下:
Table of Contents
=================
* [Name](#name)
* [Description](#description)
* ...
<a id="description">Description<a/>
===========
OpenResty is a full-fledged web application server by bundling the standard nginx core,
lots of 3rd-party nginx modules, as well as most of their external dependencies.
说明:
链接处:使用[显示文本](#链接名字)
锚点处:<a id="链接名字">文本<a/>
表格
To add a table, use three or more hyphens (---) to create each column’s header, and use pipes (|) to separate each column. You can optionally add pipes on either end of the table.
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |