mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
docs: Fix Rendering of <AUTOGENERATED_TABLE_OF_CONTENTS> Tag on API - Markdown Features Page (#1617)
This commit is contained in:
parent
7b7d1e6161
commit
684a2461bd
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,7 @@ Example:
|
|||
|
||||
You can make an auto-generated list of links, which can be useful as a table of contents for API docs.
|
||||
|
||||
In your markdown file, insert a line with the text `<AUTOGENERATED_TABLE_OF_CONTENTS>`. Write your documentation using `h3` headers for each function inside a code block. These will be found by Docusaurus and a list of links to these sections will be inserted at the text `<AUTOGENERATED_TABLE_OF_CONTENTS>`.
|
||||
In your markdown file, insert a line with the text <code><AUTOGENERATED_TABLE_OF_CONTENTS></code>. Write your documentation using `h3` headers for each function inside a code block. These will be found by Docusaurus and a list of links to these sections will be inserted at the text `<AUTOGENERATED_TABLE_OF_CONTENTS>`.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -144,10 +144,12 @@ Adding the following code to your Markdown file:
|
|||
produces this:
|
||||
|
||||
<!--DOCUSAURUS_CODE_TABS-->
|
||||
|
||||
<!--JavaScript-->
|
||||
```js
|
||||
console.log('Hello, world!');
|
||||
```
|
||||
|
||||
<!--Python-->
|
||||
```py
|
||||
print('Hello, world!')
|
||||
|
|
Loading…
Add table
Reference in a new issue