Skip to content

Commit

Permalink
Merge pull request #1 from phpsa/master
Browse files Browse the repository at this point in the history
Fixed on Statamic 3.0.7
  • Loading branch information
jedamzik committed Nov 4, 2020
2 parents efbb632 + eaba82c commit bc21185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ To extend the default Parser for all Markdown fields in your Statamic instance,

```php
Markdown::addExtension(function () {
return new \Njed\Toc\Extensions\CommonMark\TitleAnchorIdExtension::class
return new \Njed\Toc\Extensions\CommonMark\TitleAnchorIdExtension;
});
```

Expand All @@ -79,7 +79,7 @@ Markdown::extend('special', function ($parser) {
return $parser
->withStatamicDefaults()
->addExtension(function () {
return new \Njed\Toc\Extensions\CommonMark\TitleAnchorIdExtension::class
return new \Njed\Toc\Extensions\CommonMark\TitleAnchorIdExtension;
});
});
```
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public function register()
{
$this->mergeConfigFrom(__DIR__.'/../config/toc.php', 'toc');
}
}
}

0 comments on commit bc21185

Please sign in to comment.