如果你查看一个React文档markdown文件(用于生成文档html页面),你会在顶部看到一个值的表格(在
.md
中,而不是.html
)。如果你查看用于创建表格的实际markdown语法,你会看到一个非标准表格语法:---
id: hello-world
title: Hello World
permalink: docs/hello-world.html
prev: installation.html
next: introducing-jsx.html
redirect_from:
- "docs/index.html"
- "docs/getting-started.html"
- "docs/getting-started-ko-KR.html"
- "docs/getting-started-zh-CN.html"
---
所有我能找到的 GitHub/Markdown 资源都建议这样创建表格:
我已经尽力搜索了,想知道这是否是一项记录在案的功能,以及该文档可能在哪里?From https://guides.github.com/features/mastering-markdown/
Tables
You can create tables by assembling a list of words and dividing them with hyphens
-
(for the first row), and then separating each column with a pipe|
:
First Header | Second Header ------------ | ------------- Content from cell 1 | Content from cell 2 Content in the first column | Content in the second column