n0sz/commonmark-marker-extension
A Laravel and PHP CommonMark extension that adds marker-style highlighting to your Markdown. Wrap text with marker syntax and render it as highlighted output, making it easy to emphasize key passages in docs, notes, and user-generated content.
league/commonmark renderer with "marker" syntax — highlighted/annotated spans rather than plain bold/italic. That's a small but concrete differentiator in how users mark up review notes, diff-style feedback, or emphasis.league/commonmark is the de facto PHP Markdown standard. Adding a syntax extension as a Composer package is a ~1-day evaluation versus building a custom parser. This supports a "buy/extend" decision rather than a "build" one.Adopt (after a spike) only when all of these hold:
league/commonmark; the extension drops into the existing pipeline with minimal surface area.league/commonmark major version can't silently break output.Look elsewhere when:
league/commonmark, or you render client-side (this is PHP-only).For executives: This is a small, free (MIT) add-on to a Markdown renderer we already use. It lets our authors highlight and mark up specific passages instead of relying on plain bold text — a modest quality-of-life gain for content workflows, not a platform change. Total cost is low: a short engineering spike, no license fees, and no new infrastructure. The tradeoff is that the package is a hobby-scale project with no releases since 2022, so we should treat it as code to adopt and own, not a vendor relationship. Recommendation: fund a time-boxed spike, keep it behind our existing rendering abstraction, and only ship it if a real authoring use case is confirmed.
For engineering: It's a league/commonmark extension — install via Composer, register the extension on the Environment, and the marker syntax renders through the existing AST pipeline. Low integration risk, but zero upstream support: pin the version, wrap it behind our own renderer interface, and add golden-file tests on rendered HTML so an eventual league/commonmark upgrade fails loudly rather than silently. Estimate a spike plus hardening; if the syntax is simple, our fallback is to fork or reimplement it ourselves against the documented spec.
How can I help you explore Laravel packages today?