Skip to content

Commit 04e2ed0

Browse files
committed
Fix parameter names in ToC configuration documentation
1 parent f7cddba commit 04e2ed0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Configuration/Table of Contents.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ $ParsedownExtended->config()->set('toc', (bool|array) $value);
2020

2121
Configure ToC with these options:
2222

23-
- **headings** (array): Defines which heading levels to include in the ToC.
24-
- **tag** (string): Sets a custom markdown tag for generating the ToC.
23+
- **levels** (array): Defines which heading levels to include in the ToC.
24+
- **tag** (string): Sets a custom markdown tag for generating the ToC. Defaults to `[TOC]`.
2525
- **id** (string): Assigns a custom ID to the ToC container.
2626

2727
## Generating ToC and Content Separately
@@ -61,8 +61,8 @@ Customize ToC with specific configurations:
6161

6262
```php
6363
$ParsedownExtended->config()->set('toc', [
64-
'headings' => ['h1', 'h2', 'h3'], // Headings to include
65-
'tag' => '[toc]', // Custom ToC tag
64+
'levels' => ['h1', 'h2', 'h3'], // Heading levels to include
65+
'tag' => '[TOC]', // Custom ToC tag
6666
'id' => 'table-of-contents', // Custom ToC ID
6767
]);
6868
```

0 commit comments

Comments
 (0)