Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phppkg/cli-markdown

Render colored Markdown contents on console terminal
https://github.com/phppkg/cli-markdown

cli markdown

Last synced: 4 days ago
JSON representation

Render colored Markdown contents on console terminal

Awesome Lists containing this project

README

        

# CLI-Markdown

[![License](https://img.shields.io/packagist/l/phppkg/cli-markdown.svg?style=flat-square)](LICENSE)
[![Php Version](https://img.shields.io/badge/php-%3E=8.0.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/phppkg/cli-markdown)
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/phppkg/cli-markdown)](https://github.com/phppkg/cli-markdown)
[![Actions Status](https://github.com/phppkg/cli-markdown/workflows/Unit-Tests/badge.svg)](https://github.com/phppkg/cli-markdown/actions)

Render colored markdown contents on console terminal

**Preview**

> run demo by `php example/demo.php`

![demo](example/demo.png)

## Features

- support auto render color on terminal
- support custom set cli color tags

## Install

**composer**

```bash
composer require phppkg/cli-markdown
```

## Usage

quick usage:

```php
render($contents);

echo $rendered;
```

## Base on

package | description
---------|--------------
`cebe/markdown` | parse markdown contents
`toolkit/cli-utils` | provide cli color render

## License

[MIT](LICENSE)