mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-17 11:07:07 +02:00
docs: enhance docs about Markdown TOC and metadata (#7278)
* docs: multiple documentation improvements * fix * fix
This commit is contained in:
parent
afc72480ab
commit
9fd5d62340
11 changed files with 129 additions and 84 deletions
|
@ -426,7 +426,7 @@ The table of contents does not currently contain the imported Markdown headings.
|
|||
Within the MDX page, the following variables are available as globals:
|
||||
|
||||
- `frontMatter`: the front matter as a record of string keys and values;
|
||||
- `toc`: the table of contents, as a tree of headings. See also [Inline TOC](./markdown-features-inline-toc.mdx) for a more concrete use-case.
|
||||
- `toc`: the table of contents, as a tree of headings. See also [Inline TOC](./markdown-features-toc.mdx#inline-table-of-contents) for a more concrete use-case.
|
||||
- `contentTitle`: the Markdown title, which is the first `h1` heading in the Markdown text. It's `undefined` if there isn't one (e.g. title specified in the front matter).
|
||||
|
||||
```jsx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue