A Laravel wrapper for CommonMark with Blade view integration for rendering Markdown as HTML.
Laravel Markdown is a Laravel package that wraps the CommonMark Markdown parser to provide Markdown-to-HTML conversion within Laravel applications. It solves the need for a standardized, framework-integrated way to handle Markdown content, offering both programmatic conversion and view system integration. The package simplifies adding Markdown support to Laravel projects with minimal configuration.
Laravel developers who need to parse and render Markdown content in their applications, such as those building blogs, documentation sites, or content-heavy web platforms.
Developers choose Laravel Markdown for its tight Laravel integration, including Blade directives and view rendering, eliminating the need to manually wire up CommonMark. It provides a consistent, configurable, and Laravel-idiomatic approach to Markdown processing.
A CommonMark wrapper for Laravel
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides a service provider, facade, and dependency injection bindings, making it feel native to Laravel's ecosystem and easy to use within the framework.
Includes a @markdown Blade directive and automatically renders files with .md, .md.php, and .md.blade.php extensions, simplifying template workflows without manual conversion.
Built on the League CommonMark library, allowing for custom extensions and configurations through a published config file, as shown in the README's configuration section.
Leverages CommonMark for reliable, specification-compliant Markdown to HTML conversion, ensuring consistency and adherence to modern Markdown standards.
Heavily tied to Laravel's architecture, making it unsuitable for projects that might migrate away from Laravel or use other PHP frameworks, limiting portability.
Requires publishing vendor assets and managing a configuration file, which adds setup steps compared to using CommonMark directly in simpler scenarios.
Updates and bug fixes are contingent on the underlying CommonMark library, which might not align with Laravel's release cycle, potentially causing compatibility delays.
The version support matrix shows tight coupling with specific Laravel and PHP versions, complicating upgrades and requiring careful version management.