2.8. 支持的语法比较#
元素 |
reStructuredText语法 |
Markdown 语法 |
---|---|---|
标题(Heading) |
|
|
粗体(Bold) |
bold text |
bold text |
斜体(Italic) |
italicized text |
italicized text |
引用块(Blockquote) |
|
|
有序列表(Ordered List) |
|
|
无序列表(Unordered List) |
|
|
代码(Code) |
`` |
`` code `` |
分隔线(Horizontal Rule) |
|
|
链接(Link) |
|
|
图片(Image) |
|
|
#扩展语法 |
||
表格(Table) |
Syntax??????| Description |
|
|
----------- | ----------- |
|
||
Header??????| Title???????|
|
||
Paragraph???| Text????????|
|
||
代码块(Fenced Code Block) |
||
{ |
||
??"firstName": "John", |
||
??"lastName": "Smith", |
||
??"age": 25 |
||
} |
||
脚注(Footnote) |
Here's a sentence with a footnote.?[^1] |
|
[^1]: This is the footnote. |
||
标题编号(Heading ID) |
### My Great Heading {#custom-id} |
|
定义列表(Definition List) |
term |
|
: definition |
||
删除线(Strikethrough) |
~~The world is flat.~~ |
|
任务列表(Task List) |
|
|
|
||
|