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.
You can render any markdown by resolving Spatie\LaravelMarkdown\MarkdownRenderer out of the container and calling toHtml. By resolving the class out of the container all options of the config file will be used.
$html = app(Spatie\LaravelMarkdown\MarkdownRenderer::class)->toHtml($markdown);
How can I help you explore Laravel packages today?