Skip to content

Commit 2bb0414

Browse files
authored
Fix anchor link on events (#49)
1 parent e893f70 commit 2bb0414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/Http/Controllers/ShowDocumentationController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function extractTableOfContents(string $document): array
192192
return [
193193
'level' => strlen(trim(Str::before($line, '# '))) + 1,
194194
'title' => $title = trim(Str::after($line, '# ')),
195-
'anchor' => Str::slug($title),
195+
'anchor' => Str::slug(Str::replace('`', 'code', $title)),
196196
];
197197
})
198198
->toArray();

0 commit comments

Comments
 (0)