2017 © Pedro Peláez
 

symfony-bundle markdownbundle

Markdown/Parsedown bundle for Symfony2 providing a service and a twig filter

image

kalmanolah/markdownbundle

Markdown/Parsedown bundle for Symfony2 providing a service and a twig filter

  • Saturday, May 24, 2014
  • by kalmanolah
  • Repository
  • 1 Watchers
  • 1 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

KalmanOlah/MarkdownBundle

Markdown/Parsedown bundle for Symfony2 providing a service and a twig filter, (*1)

Installation

Just add this to your composer.json:, (*2)

...
"require": {
    ...
    "kalmanolah/markdownbundle": "*@dev",
    ...
}
...

Afterwards, enable the bundle in your AppKernel.php like so:, (*3)

$bundles = array(
    ...
    new KalmanOlah\MarkdownBundle\KalmanOlahMarkdownBundle(),
);

Usage

Using the service:

// Assuming you have a container handy
echo $this->get('markdown')->text('**Hello, world!**');

This would then print:, (*4)

<b>Hello, world!</b>

Using the Twig filter:

{{ 'Hello, world!' | markdown }}

The Versions

24/05 2014

dev-master

9999999-dev https://github.com/kalmanolah/markdownbundle

Markdown/Parsedown bundle for Symfony2 providing a service and a twig filter

  Sources   Download

MIT

The Requires

 

service twig symfony2 bundle symfony markdown parsedown