parsedown/laravel
Parsedown Laravel integrates the fast Parsedown Markdown parser with Laravel, offering a simple facade and service provider to convert Markdown to HTML. Configure safe mode and custom extensions easily in your views, controllers, or Blade templates.
parsedown() / @parsedown enables inline parsing of expressions, useful for CMS fields, email templates, and preview panes; argument-less calls return a configurable singleton, which simplifies repeated rendering (e.g., comment/post lists) and environment-specific behavior.Consider it when:
@parsedown in Blade, parsedown() in PHP, and singleton reuse for performance.Look elsewhere when:
league/commonmark is the more spec-faithful, actively maintained alternative.Executives: This is a small, low-cost dependency that lets us ship Markdown-based content features (docs, blogs, in-app help) without building and maintaining a parser ourselves. Release 1.2.0 improves flexibility — inline parsing, a reusable configured singleton, and a publishable config file — and sets a PHP 7.2.3 minimum, which all current environments satisfy. Primary caution: for user-generated content we must enforce output sanitization, and we should track parser maintenance/security as an ongoing risk rather than assume it is handled.
Engineering: 1.2.0 adds a second argument to parsedown() and @parsedown for inline parsing, allows argument-less calls that return a configured Parsedown singleton, and introduces a publishable config file that controls that singleton. Minimum PHP is now 7.2.3. Recommended usage: centralize parser settings (including safe mode) in the published config, avoid rendering raw untrusted HTML, and rely on singleton reuse for list/preview rendering. Evaluate league/commonmark if strict CommonMark compliance or extension support becomes a requirement.
How can I help you explore Laravel packages today?