Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
peterujah authored Feb 9, 2024
1 parent 9e04995 commit af58452
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```

0 comments on commit af58452

Please sign in to comment.