Rendering anchors By default, the component will add anchors to all headings in the rendered HTML. To disable this behaviour, you can set the add_anchors_to_headings config value in the the markdown config file to false. Alternatively, you can call disableAnchors() $html = app(Spatie\LaravelMarkdown\MarkdownRenderer::class) ->disableAnchors() ->toHtml($markdown); Configuring code highlighting Passing options to Commonmark Help us improve this page