bcremer/sculpin-commonmark-bundle
最新稳定版本:0.5.0
Composer 安装命令:
composer require bcremer/sculpin-commonmark-bundle
包简介
Sculpin league/commonmark bundle
README 文档
README
Sculpin bundle that integrates the league/commonmark markdown parser.
Installation
- Add the following to your
sculpin.jsonfile:
{
"require": {
"bcremer/sculpin-commonmark-bundle": "~0.5"
}
}
- Run
sculpin update. - Add the bundle to your kernel
app/SculpinKernel.php:
<?php class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel { protected function getAdditionalSculpinBundles() { return array( 'Bcremer\Sculpin\Bundle\CommonMarkBundle\SculpinCommonMarkBundle' ); } }
Extensibility
This bundle provides access to the low level component of the league/commonmark package.
For more information about league/commonmark customization please see Advanced Usage & Customization and
Community Extensions.
Defined services
This bundle defines the following services in the sculpin DI Container:
sculpin_commonmark.environmentsculpin_commonmark.docparsersculpin_commonmark.htmlrenderersculpin_commonmark.league_convertersculpin_commonmark.convertersculpin_commonmark.event.commonmark
Defined DI Tags
This bundle handles the following Dependency Injection Tags:
sculpin_commonmark.extension: To add a implementation ofLeague\CommonMark\Extension\ExtensionInterfaceto theLeague\CommonMark\Environment.
Example
To add the CommonMark Table Extension add the following to your app/config/sculpin_services.yml:
# app/config/sculpin_services.yml services: league.commonmark.tablextension: class: League\CommonMark\Extension\Table\TableExtension tags: - { name: sculpin_commonmark.extension }
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 5.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-23