2017 © Pedro Peláez
 

symfony-bundle ciconia-bundle

Symfony bundle for Ciconia Markdown parser for PHP

image

gremo/ciconia-bundle

Symfony bundle for Ciconia Markdown parser for PHP

  • Sunday, September 17, 2017
  • by gremo
  • Repository
  • 2 Watchers
  • 3 Stars
  • 945 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

GremoCiconiaBundle

Latest stable Downloads total GitHub issues, (*1)

Symfony bundle for Ciconia Markdown parser for PHP., (*2)

Installation

Add the bundle in your composer.json file:, (*3)

{
    "require": {
        "gremo/ciconia-bundle": "~1.0"
    }
}

Then enable the bundle in the kernel:, (*4)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Gremo\CiconiaBundle\GremoCiconiaBundle(),
        // ...
    );
}

Configuration

Configuration is optional, extensions are disabled by default:, (*5)

# GremoCiconiaBundle Configuration
gremo_ciconia:
    renderer: ~ # Or null or "html" or "xhtml"
    extensions: ~ # Enable all with true or null (false to disable)

To selectively enable an extension:, (*6)

# GremoCiconiaBundle Configuration
gremo_ciconia:
    # ...
    extensions:
        fencedCodeBlock: ~ # Or true or null (false to disable) 
        # ...

Usage

Get the ciconia service from the service container:, (*7)

/** @var \Ciconia\Ciconia $ciconia */
$ciconia = $container->get('ciconia');

// Refer to kzykhys/Ciconia for examples
$html = $ciconia->render('Markdown is **awesome**');

// 

Markdown is awesome, (*8)

Or in twig template:, (*9)

{{ var|markdown }}

Dependency Injection Tags

Give the service a tag named ciconia.extension to automatically registered it as an extension., (*10)

The Versions

17/09 2017

dev-master

9999999-dev

Symfony bundle for Ciconia Markdown parser for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

parser cli markdown

06/03 2015

v1.0.1

1.0.1.0

Symfony 2 bundle for Ciconia Markdown parser for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

parser cli markdown

08/10 2014

v1.0.0

1.0.0.0

Symfony 2 bundle for Ciconia Markdown parser for PHP

  Sources   Download

MIT

The Requires

 

parser cli markdown