# cebe/markdown

A super fast, highly extensible markdown parser for PHP

Repository: https://github.com/cebe/markdown
Canonical: https://ross.abutalabs.com/products/cebe-markdown
Homepage: http://markdown.cebe.cc/
Language: HTML
License: MIT
License Family: permissive
Topics: php, markdown-parser, markdown, markdown-to-html, markdown-converter, markdown-flavors, markdown-extra, gfm, hacktoberfest
Last push: 2022-10-04T04:54:35+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4591, "days_push": 1429, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1012, forks 137 (observed 2026-08-28T04:03:13.343678+00:00)

## What it is
cebe/markdown is a fast, highly extensible Markdown parser library for PHP that converts Markdown to HTML. It ships as a set of PHP classes, each representing a Markdown flavor (traditional Markdown, GitHub-flavored Markdown, and partially Markdown Extra), plus a command-line tool for converting Markdown files to HTML. It exposes an AST-based internal representation so new language elements can be added by adding methods rather than writing fragile regular expressions.

## Use cases
- convert markdown files to html from the command line
- render user-submitted markdown comments in a php web app
- parse github-flavored markdown in php
- extend markdown with custom syntax elements
- read markdown structure via an abstract syntax tree
- power documentation rendering for a php framework

## When to choose
- you need a fast, well-tested Markdown-to-HTML parser in PHP
- you need GitHub-flavored Markdown support
- you want to extend Markdown with custom elements via an AST instead of regex hacks
- you need a simple CLI tool for batch Markdown conversion

## When to avoid
- you need full Markdown Extra support, which is incomplete
- you need a parser in a language other than PHP
- you need SmartyPants or other planned-but-unimplemented flavors
- you need a library under very active development - the latest release is from 2022

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools
- domain: parsers, documentation, developer-tools
- platform: php, cli, cross-platform
- tags: markdown, markdown-to-html, gfm, markdown-extra, ast, extensible-parser

## Member repositories
- cebe/markdown (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.343678+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:11:44.513780+00:00, confidence not recorded.
  - readme: https://github.com/cebe/markdown (fetched 2026-08-28T04:03:13.343678+00:00, sha 8b2f803e1c46)
  - homepage: http://markdown.cebe.cc/ (fetched 2026-08-29T13:11:18.525773+00:00, sha 81b41637ac66)
  - site_page: http://markdown.cebe.cc/readme (fetched 2026-08-29T13:11:18.534788+00:00, sha 53183cde1dad)
- Data as of 2026-08-30T08:39:29.467469+00:00.
