Markdown parser in PHP: one file, no dependencies, GitHub flavored
open sourceMITfree
Parsedown is a Markdown parser for PHP by Emanuil Rusev: a single file with no dependencies that reads Markdown line by line, supports GitHub Flavored Markdown and passes most of the CommonMark tests. Its safe mode escapes untrusted input and sanitises scripting link destinations, and the Parsedown Extra extension adds Markdown Extra. Laravel, Grav, Kirby, October and Statamic are among the projects that use it.
Problems it solves
- render Markdown to HTML in PHP without pulling in dependencies
- safely turn users' Markdown comments into HTML in a PHP app
- a fast GitHub-flavored Markdown parser for my PHP CMS
Features
- one file with no dependencies
- GitHub Flavored Markdown, and passes most CommonMark tests
- safe mode for untrusted user input
- parse inline Markdown only with line()
- extensible, with a Markdown Extra extension (Parsedown Extra)
Capabilities
| Takes plugins | plan not known |
|---|
Alternatives
The same job
These do what Parsedown does.
- league/commonmark Extensible PHP Markdown parser for CommonMark and GitHub-Flavored Markdown
