From af58452dff533e5923fc686b07559d1e59b7d01b Mon Sep 17 00:00:00 2001 From: Chigozie Peter Date: Sat, 10 Feb 2024 02:03:25 +0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); +```