2017 © Pedro Peláez
 

symfony-bundle parsedown-bundle

Add support for parsedown and parsedown-extra in Symfony 2 by providing services and Twig filters.

image

bgaze/parsedown-bundle

Add support for parsedown and parsedown-extra in Symfony 2 by providing services and Twig filters.

  • Wednesday, May 30, 2018
  • by Bgaze
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2,507 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

This project is not maintained anymore. Feel free to fork it and upgrade it as you want., (*1)

Bgaze Parsedown Bundle

Add support for parsedown and parsedown-extra in Symfony 2., (*2)

Provides :, (*3)

  • Two services:
    • parsedown.standart : parsedown parser.
    • parsedown.extra : parsedown-extra parser (support for Markdown Extra).
  • Two twig filter:
    • md : parse markdown with standart parser.
    • mde : parse markdown with extra parser.

Install

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

"require": {
    "bgaze/parsedown-bundle": "dev-master"
}

Update your vendors, then enable bundle in AppKernel.php :, (*5)

new Bgaze\ParsedownBundle\BgazeParsedownBundle(),

Usage

In twig templates:, (*6)

{# Parse markdown using parsedown standart parser #}
{{ var|md }}

{# Parse markdown using parsedown-extra parser #}
{{ var|mde }}

In PHP :, (*7)

// Parse markdown using parsedown standart parser.
echo $container->get('parsedown.standart')->text($var);

// Parse markdown using parsedown-extra parser.
echo $container->get('parsedown.extra')->text($var);

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/Bgaze/ParsedownBundle

Add support for parsedown and parsedown-extra in Symfony 2 by providing services and Twig filters.

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle markdown parsedown