league/commonmark
Extensible PHP Markdown parser supporting the full CommonMark spec and GitHub-Flavored Markdown. Works with PHP 7.4+ (mbstring) and provides simple converters to turn Markdown into HTML with configurable safety options.
Content Management & Documentation Systems:
vbscript:/file: URLs) to harden user-generated content (e.g., forum posts, comments) against injection attacks.Developer Tooling & APIs:
Security & Compliance:
unsafe link filter.Extensibility Roadmap:
parsedown if they lack similar fixes for CommonMark/GFM compliance.Performance-Critical Paths:
Adopt if:
Look elsewhere if:
marked, mistune) may have fewer edge-case bugs.marked.js)."The latest update (2.8.3) fixes two critical issues that directly impact our product:
data:), which could break integrations or trigger false positives in audits (#1131).Example ROI:
Recommendation: Proceed with integration for content-heavy features; the fixes validate this as our long-term Markdown parser."*
"2.8.3 resolves two blocking issues for [Project X]. Here’s the impact:
Fixed Edge Cases:
git commit 2. docker run’).vbscript:, file:, etc., was too aggressive. Now:
data: URLs (e.g., for embedded images) work.Validation Steps:
data: URIs).parsedown—the fixes shouldn’t introduce regressions.Trade-offs:
parsedown (~20 deps), but the trade-off is justified for compliance and features.marked.js (frontend) + this package (backend).Next Steps:
composer.json to ^2.8.3 and test in staging.Key Selling Points:
How can I help you explore Laravel packages today?