Skip to content
Symfony bundle that integrates the league/commonmark markdown parser.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src Remove class from definition decorator Apr 27, 2016
.gitattributes Created initial version of bundle Aug 8, 2015
.gitignore Created initial version of bundle Aug 8, 2015
.php_cs Created initial version of bundle Aug 8, 2015
.travis.yml Minimal PHP 5.5 Apr 27, 2016
CHANGELOG.md Make compatible with Symfony 3 Feb 22, 2016
LICENSE Created initial version of bundle Aug 8, 2015
README.md Fixed automatic registration of commonmark extensions Aug 12, 2015
composer.json Minimal PHP 5.5 Apr 27, 2016
phpspec.yml.dist Created initial version of bundle Aug 8, 2015

README.md

CommonMark Bundle

Packagist Build Status Scrutinizer Code Quality SensioLabsInsight

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
You can’t perform that action at this time.