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.
Under the hood, the league/commonmark package is used to render markdown. In the commonmark_options key of the markdown config file, you can pass any of the options mentioned in the league/commonmark docs.
Alternatively, you can pass options to the commonmarkOptions() method.
$html = app(Spatie\LaravelMarkdown\MarkdownRenderer::class)
->commonmarkOptions($arrayWithOptions)
->toHtml($markdown);
How can I help you explore Laravel packages today?