Download the PHP package aydin-hassan/cli-md-renderer without Composer
On this page you can find all versions of the php package aydin-hassan/cli-md-renderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aydin-hassan/cli-md-renderer
More information about aydin-hassan/cli-md-renderer
Files in aydin-hassan/cli-md-renderer
Download aydin-hassan/cli-md-renderer
More information about aydin-hassan/cli-md-renderer
Files in aydin-hassan/cli-md-renderer
Vendor aydin-hassan
Package cli-md-renderer
Short Description A CLI Markdown Render for league/commonmark compatible AST
License MIT
Package cli-md-renderer
Short Description A CLI Markdown Render for league/commonmark compatible AST
License MIT
Please rate this library. Is it a good library?
Informations about the package cli-md-renderer
CLI Markdown Renderer
<img src="https://github.com/AydinHassan/cli-md-renderer/workflows/CliMdRenderer/badge.svg">
Usage
Syntax Highlighting
FencedCode
can be syntax highlighted. By default only PHP source code is Syntax Highlighted using: kadet/keylighter
If you want to add syntax highlighting for other languages you should create a class which implements \AydinHassan\CliMdRenderer\SyntaxHighlighterInterface
It accepts code as a string and should return highlighted code as a string. You register your highlighter like so
If you need to do this you cannot use the factory so construction will look something like:
To Do
- [ ] Make configurable (Line Endings, colors, styles)
- [x] Image Renderer
- [x] List Renderer
- [x] Code Syntax Highlighting
- [x] Documentation
All versions of cli-md-renderer with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 | ^8.0
league/commonmark Version ^2.1
php-school/keylighter Version ^0.8.4
kevinlebrun/colors.php Version ^1.0
league/commonmark Version ^2.1
php-school/keylighter Version ^0.8.4
kevinlebrun/colors.php Version ^1.0
The package aydin-hassan/cli-md-renderer contains the following files
Loading the files please wait ....