hashnz/twig-markdown-bundle
A Symfony bundle that adds Twig filters for rendering Markdown into HTML, letting templates keep content in readable Markdown while outputting formatted HTML through a configurable parser. Install via Composer and register the bundle to add Markdown support to any Symfony application's Twig template...
aptoma/twig-markdown, so the real decision is about the underlying library, not this bundle.hashnz/TwigMarkdownBundle). It will not drop into a Laravel app without adaptation. If your stack is Laravel, the equivalent decision is league/commonmark (often via a small Blade directive or a Laravel markdown package), not this repo.Consider it only when all of the following hold:
aptoma/twig-markdown behavior.Look elsewhere when:
league/commonmark directly; it's the de facto standard, actively maintained, and has a large ecosystem.htmlpurifier or CommonMark's safe mode regardless.To executives: "There's a small open-source component that lets our content team write in Markdown instead of raw HTML — cheaper and faster than building an editor, and it keeps formatting consistent across pages and emails. However, this specific wrapper has essentially no adoption (no stars, no known users) and targets Symfony, not our Laravel stack. Recommendation: adopt the well-maintained underlying parser (league/commonmark) directly and wire it up ourselves — roughly a day of engineering — rather than take a dependency on an unvetted wrapper."
To engineering: "Thin Symfony/Twig wrapper around aptoma/twig-markdown. It's ~a service definition and a Twig extension. Useful as a pattern reference for how to expose a markdown filter, but not as a dependency: zero stars, zero dependents, no maintenance signal, and it's Symfony-only. Use league/commonmark (or aptoma/twig-markdown on Symfony) directly, enable safe mode or add HTML sanitization, and cache rendered output."
Bottom line for the roadmap: the capability (markdown authoring) is worth a slot; this package is not the way to get it. Decision: build the thin integration in-house on a maintained parser.
How can I help you explore Laravel packages today?