diff --git a/README.md b/README.md index eae6933..4a2b5cc 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,12 @@ ```bash composer install nanoblocktech/markdown ``` + +```php +$markdown = new Markdown(); + +$markdown->text('### Hello'); +$markdown->enableTableOfContents(true); +$markdown->setHeadings(['h1', 'h2']); +$arry = $markdown->getTableOfContents(); +```