PHPackages                             big-dream/hyper-down - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. big-dream/hyper-down

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

big-dream/hyper-down
====================

A light weight markdown parser library

1.0.0(5y ago)04BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jun 3Pushed 5y agoCompare

[ Source](https://github.com/big-dream/HyperDown)[ Packagist](https://packagist.org/packages/big-dream/hyper-down)[ RSS](/packages/big-dream-hyper-down/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

为何要写这样一个解析器
===========

[](#为何要写这样一个解析器)

Markdown已经面世许多年了，国内外许多大大小小的网站都在用它，但是它的解析器却依然混乱不堪。SegmentFault 是中国较大规模使用 Markdown 语法的网站，我们一直在使用一些开源类库，包括但不限于

1. [php-markdown](https://github.com/michelf/php-markdown)
2. [CommonMark for PHP](https://github.com/thephpleague/commonmark)
3. [Parsedown](https://github.com/erusev/parsedown)

他们都有或多或少的毛病，有的性能较差，有的代码比较业余，更多的情况是由于Markdown本身解析比较复杂，因此我们几乎无法去维护另外一个人写的代码。基于这个原因，我为 SegmentFault 专门编写了这么一个Markdown解析器。

使用方法
----

[](#使用方法)

与常规的解析类库没有任何区别

```
$parser = new HyperDown\Parser;
$html = $parser->makeHtml($text);
```

当前支持的语法
-------

[](#当前支持的语法)

- 标题
- 列表（可递归）
- 引用（可递归）
- 缩进风格的代码块
- Github风格的代码块
- 各种行内文字加粗，斜体等效果
- 链接，图片
- 自动链接
- 段内折行
- 脚标
- 分隔符
- 表格
- 图片和链接支持互相套用

浏览器中使用请参阅 [HyperDown.js](https://github.com/SegmentFault/HyperDown.js)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2175d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1297b521c54f7845f4f997452b740d8a2ea63bafebfed6e6b4275b0b0cce11eb?d=identicon)[jwj](/maintainers/jwj)

---

Top Contributors

[![joyqi](https://avatars.githubusercontent.com/u/59437?v=4)](https://github.com/joyqi "joyqi (126 commits)")[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (4 commits)")[![TechQuery](https://avatars.githubusercontent.com/u/19969570?v=4)](https://github.com/TechQuery "TechQuery (1 commits)")[![wtser](https://avatars.githubusercontent.com/u/2093743?v=4)](https://github.com/wtser "wtser (1 commits)")

### Embed Badge

![Health badge](/badges/big-dream-hyper-down/health.svg)

```
[![Health](https://phpackages.com/badges/big-dream-hyper-down/health.svg)](https://phpackages.com/packages/big-dream-hyper-down)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
