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 f72435a commit a947efbCopy full SHA for a947efb
docs/examples.md
@@ -43,7 +43,7 @@ use JackSleight\StatamicBardMutator\Facades\Mutator;
43
44
Mutator::html('heading', function ($value, $item) {
45
if ($item->attrs->level === 2) {
46
- $value[1]['id'] = str_slug(collect($item->content)->implode('text', ''));
+ $value[1]['id'] = str_slug(collect($item->content ?? [])->implode('text', ''));
47
}
48
return $value;
49
});
@@ -202,4 +202,4 @@ Statamic includes a set of [modifiers](https://statamic.dev/modifiers) that can
202
{{ headings }}
203
<a href="#{{ content | bard_text | slugify }}">{{ content | bard_html }}</a>
204
{{ /headings }}
205
-```
+```
0 commit comments