Reactjs 反应文档-->;使用特殊表语法的GitHub标记文件

Reactjs 反应文档-->;使用特殊表语法的GitHub标记文件,reactjs,github,markdown,github-flavored-markdown,Reactjs,Github,Markdown,Github Flavored Markdown,如果查看a(用于生成),您将在最顶部看到值的表(在.md中,而不是.html)。如果查看用于创建表的实际标记语法,您将看到非标准表语法: --- 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-sta

如果查看a(用于生成),您将在最顶部看到值的表(在
.md
中,而不是
.html
)。如果查看用于创建表的实际标记语法,您将看到非标准表语法

---
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资源都表明表是这样创建的:

桌子 您可以通过组合单词列表并将其拆分来创建表 使用连字符
-
(用于第一行),然后分隔每列 使用管道
|

First Header | Second Header
------------ | -------------
Content from cell 1 | Content from cell 2
Content in the first column | Content in the second column
我已经用尽了我的谷歌搜索技能,想知道是否有人知道这是否是一个文档化的功能,文档可能在哪里?

这是很多静态站点生成器*允许的一种向文档添加元数据的方法。它实际上不是Markdown本身的一部分——GitHub只是为它提供了很好的样式,因为它非常常用

正如Waylan所评论的,值得注意的是,在标记实际被解析之前,前端内容通常会被静态站点生成器剥离出来,因此它不会出现在React文档页面中


*包括,这是什么和使用它可能有助于补充:使用frontmatter的工具通常在将标记文本传递给标记解析器之前删除元数据。