webuni / commonmark-bundle
The table extension for CommonMark PHP implementation
Installs: 27 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 3
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^5.5|^7.0
- league/commonmark: ~0.13
- symfony/config: ^2.3|^3.0
- symfony/dependency-injection: ^2.3|^3.0
- symfony/http-kernel: ^2.3|^3.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-05 03:59:30 UTC
README
Symfony bundle that integrates the league/commonmark markdown parser.
Installation
This project can be installed via Composer:
composer require webuni/commonmark-bundle
Add WebuniCommonMarkBundle to your application kernel
// app/AppKernel.php public function registerBundles() { return array( // ... new Webuni\Bundle\CommonMarkBundle\WebuniCommonMarkBundle(), // ... ); }
Defined DI Tags
This bundle handles the following Dependency Injection Tags:
webuni_commonmark.extension: To add a implementation of League\CommonMark\Extension\ExtensionInterface to the default environment.
To add the CommonMark Table Extension add the following to your app/config/sculpin_services.yml:
# app/config/sculpin_services.yml services: app.commonamrk_table_extension: class: Webuni\CommonMark\TableExtension\TableExtension tags: - name: webuni_commonmark.extension