We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccfb908 commit 119448cCopy full SHA for 119448c
README.MD
@@ -47,8 +47,11 @@ use Lutdev\TOC\TableContents
47
or you can download package and include it via ```require```
48
### Usage
49
```php
50
+$tableContents = new TableContents();
51
+```
52
+```php
53
//return string table contents
-TableContents::tableContents($text);
54
+$tableContents->tableContents($text);
55
```
56
57
Table of contents have next structure:
@@ -93,7 +96,7 @@ Table of contents have next structure:
93
96
94
97
95
98
//Add ID attribute to the headers. Need for anchors.
-TableContents::headerLinks($text)
99
+$tableContents->headerLinks($text)
100
101
102
## Feedback
0 commit comments