PHPackages                             qwerty\_jack/cmd - 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. qwerty\_jack/cmd

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

qwerty\_jack/cmd
================

Based on cebe/markdown, add color and MathJax support.

1.0.0(9y ago)018MITPHP

Since Apr 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/QwertyJack/cmd)[ Packagist](https://packagist.org/packages/qwerty_jack/cmd)[ Docs](https://github.com/QwertyJack/cmd)[ RSS](/packages/qwerty-jack-cmd/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Colored Markdown
================

[](#colored-markdown)

Based on [cebe/markdown](https://github.com/cebe/markdown), add color and MathJax support.

### Requirements

[](#requirements)

- [PHP 5.4 or higher](https://github.com/cebe/markdown#installation-)

### Installation

[](#installation)

```
# checkout src
git clone https://github.com/QwertyJack/cmd.git

# install dependencies
php composer.phar update

```

### Usage

[](#usage)

- http (use `curl` for example)

```
curl  -d text='{red **Hello World**}'

```

This will generate **{red Hello World}**.

See also [index.html](index.html) and [static/my.js](static/my.js)

- cli

```
cat demo.md | php parser.php

```

or

```
php parser.php demo.md

```

- parser for terminal

```
cat demo.md | php cli.php

```

or

```
php cli.php demo.php

```

A playground is [HERE](http://cyp.davidandjack.cn/test/r/).

### Known Bugs

[](#known-bugs)

- The terminal parser fail to parse list begin with `*`.
- Nested inline color make a mess.
- Color blocks make the following table cells not parsed correctly.

### TODO

[](#todo)

- Sanitizing; maybe [ircmaxell/Stauros](https://github.com/ircmaxell/Stauros).
- Beautify tables in terminal.
- Find a nearest color for unknown ones in terminal instead of just ignore it.

### Acknowledgement

[](#acknowledgement)

- [cebe/markdown](https://github.com/cebe/markdown)
- [mathjax/MathJax](https://github.com/mathjax/MathJax)
- [composer/composer](https://github.com/composer/composer)
- [mogria/colorful.php](https://github.com/mogria/colorful.php)
- [XSS vulnerability by @showdownjs](https://github.com/showdownjs/showdown/wiki/Markdown's-XSS-Vulnerability-(and-how-to-mitigate-it))

**HAVE FUN !!!**

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~0 days

Total

2

Last Release

3360d ago

Major Versions

v0.1 → 1.0.02017-04-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/629f3c2f69be6576f155a40007a3b2a87c9660c8025324f7f9b4662e1f177c5f?d=identicon)[QwertyJack](/maintainers/QwertyJack)

---

Top Contributors

[![QwertyJack](https://avatars.githubusercontent.com/u/7554089?v=4)](https://github.com/QwertyJack "QwertyJack (34 commits)")

---

Tags

colormarkdownMathJax

### Embed Badge

![Health badge](/badges/qwerty-jack-cmd/health.svg)

```
[![Health](https://phpackages.com/badges/qwerty-jack-cmd/health.svg)](https://phpackages.com/packages/qwerty-jack-cmd)
```

###  Alternatives

[erusev/parsedown

Parser for Markdown.

15.1k155.2M843](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k437.5M950](/packages/league-commonmark)[michelf/php-markdown

PHP Markdown

3.5k53.8M371](/packages/michelf-php-markdown)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k31.0M276](/packages/league-html-to-markdown)[cebe/markdown

A super fast, highly extensible markdown parser for PHP

1.0k33.5M146](/packages/cebe-markdown)[cebe/markdown-latex

A super fast, highly extensible markdown parser for PHP, that converts markdown files into latex

50775.4k8](/packages/cebe-markdown-latex)

PHPackages © 2026

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