taeluf/liaison.common-mark

Liaison addon to integrate CommonMark

Installs: 51

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/taeluf/liaison.common-mark

v0.3.x-dev 2022-01-17 17:02 UTC

This package is auto-updated.

Last update: 2025-10-11 04:02:32 UTC


README

CommonMark Addon

Integrates CommonMark with Liaison.

This library is not affiliated with CommonMark.

With Liaison, simply do:

$cmark = new \Lia\Addon\CommonMark($liaison);    
# If you want any CommonMark extensions  
$cmark->enable_extension('table_of_contents', $configs[]);  
# for custom setup on the environment  
$cmark->add_hook('environment', function($environment){$environment->addRenderer(...); });  

For a list of extensions, see code/CommonMark.php $extension_list & $default_configs properties.

Note: For extensions, you may need to add dependencies to your composer.json. CommonMark comes with quite a few built-in though.

Install

composer require taeluf/liaison.common-mark v0.3.x-dev   

or in your composer.json

{"require":{ "taeluf/liaison.common-mark": "v0.3.x-dev"}}