A super fast, highly extensible markdown parser for PHP supporting multiple flavors like GitHub, Markdown Extra, and traditional Markdown.
cebe/markdown is a PHP library for parsing Markdown text into HTML. It focuses on speed and extensibility, providing a solid implementation that handles non-trivial edge cases while allowing easy customization of the Markdown language.
PHP developers who need a fast, extensible Markdown parser for applications like documentation systems, content management, or API documentation generation.
Developers choose cebe/markdown for its performance, support for multiple Markdown flavors (traditional, GFM, Markdown Extra), and extensible architecture that allows adding new elements without complex regex, making it ideal for custom Markdown implementations.
A super fast, highly extensible markdown parser for PHP
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports traditional Markdown, GitHub Flavored Markdown, and Markdown Extra in one library, allowing flexible parsing of different standards as shown in the usage examples.
Enables adding new block and inline elements by extending parser classes without complex regex, making it easy to create custom Markdown dialects as detailed in the 'Extending the language' section.
Designed for speed with competitive benchmarks, making it suitable for performance-critical applications like the Yii Framework documentation.
Provides an abstract syntax tree for advanced manipulation and meta-information extraction, useful for custom processing beyond basic HTML conversion.
The README explicitly states Markdown Extra is 'not fully supported WIP', limiting its usefulness for projects reliant on that flavor's advanced features.
Allows raw HTML inclusion by default, which can lead to XSS vulnerabilities; requires additional tools like HTML Purifier for safe parsing of user input, adding complexity.
Adding custom syntax requires understanding and implementing parser methods with PHPDoc annotations, which can be more involved than simpler, drop-in parsers.