Parsedown Extra

Markdown Extra syntax support on top of Parsedown for PHP.

Library
Composer
v0.9.0
845stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
46/100Fair
Development Activity8
Maintenance20
Community68
Maturity60
Momentum28

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
72/100Good
Architecture74
Code Quality72
Innovation60
Learning Curve84

Parsedown Extra is an extension of the popular Parsedown PHP library that adds support for the Markdown Extra specification. It layers additional syntax — tables, footnotes, definition lists, abbreviations, and attribute blocks — on top of Parsedown’s fast, single-file Markdown parser.

Usage mirrors Parsedown itself: instantiate ParsedownExtra and call text() to convert a Markdown string into HTML. It is widely used by PHP CMS platforms and static site tooling that need richer Markdown than the core spec provides.

What You Get

  • A ParsedownExtra class implementing Markdown Extra syntax
  • Support for tables, footnotes, and definition lists
  • Abbreviations and inline attribute blocks for classes and IDs
  • The same simple text() / line() API as base Parsedown

Common Use Cases

  • Rendering richer Markdown content in a PHP CMS or blog
  • Adding tables and footnotes to documentation generated from Markdown
  • Applying CSS classes and IDs to elements via attribute syntax

Under The Hood

Architecture - ParsedownExtra extends the base Parsedown class and hooks into its block and inline parsing extension points to recognize Markdown Extra constructs. It registers additional block types (tables, definition lists, footnote definitions) and inline handlers (footnote markers, abbreviations), and post-processes the document to inject footnote content and resolve attribute blocks into element attributes. Tech Stack - Single-file PHP requiring the companion Parsedown.php; distributed via Composer with a PHPUnit test suite. Code Quality - Compact and battle-tested through heavy real-world CMS adoption, though the parser relies on dense regex-driven logic inherited from Parsedown; tests cover the Markdown Extra feature set. API Design - Extremely simple and familiar: new ParsedownExtra() then ->text($markdown), identical in shape to Parsedown so no new concepts to learn.

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search