https://github.com/webuni/commonmark-bundle
Symfony bundle that integrates the league/commonmark markdown parser.
https://github.com/webuni/commonmark-bundle
Last synced: about 1 year ago
JSON representation
Symfony bundle that integrates the league/commonmark markdown parser.
- Host: GitHub
- URL: https://github.com/webuni/commonmark-bundle
- Owner: webuni
- License: mit
- Created: 2015-07-16T08:30:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-04-16T14:42:32.000Z (about 8 years ago)
- Last Synced: 2024-10-12T18:44:04.299Z (over 1 year ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
CommonMark Bundle
=================
[](https://packagist.org/packages/webuni/commonmark-bundle)
[](https://travis-ci.org/webuni/commonmark-bundle)
[](https://scrutinizer-ci.com/g/webuni/commonmark-bundle)
[](https://insight.sensiolabs.com/projects/29bd3e8e-1b60-4ad5-aa6a-e04efb41e9e2)
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
```php
// 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:
```yaml
# app/config/sculpin_services.yml
services:
app.commonamrk_table_extension:
class: Webuni\CommonMark\TableExtension\TableExtension
tags:
- name: webuni_commonmark.extension
```