spatie/laravel-markdown
Render Markdown in Laravel with a Blade x-markdown component or a configurable MarkdownRenderer. Converts content to HTML with heading IDs, links, and syntax-highlighted code blocks, using options from your config and container resolution.
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);
How can I help you explore Laravel packages today?