2017 © Pedro Peláez
 

symfony-bundle parsedown-bundle

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

image

jeremyjumeau/parsedown-bundle

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

  • Monday, October 2, 2017
  • by jeremyjumeau
  • Repository
  • 1 Watchers
  • 0 Stars
  • 65 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Jeremyjumeau Parsedown Bundle

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

Provides :, (*2)

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

Install

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

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

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

new Jeremyjumeau\ParsedownBundle\JeremyjumeauParsedownBundle(),

Usage

In twig templates:, (*5)

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

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

In PHP :, (*6)

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

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

The Versions

02/10 2017

dev-master

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

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

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony3 markdown parsedown

02/10 2017

v1.0.2

1.0.2.0 https://github.com/jeremyjumeau/ParsedownBundle

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

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony3 markdown parsedown

02/10 2017

v1.0.1

1.0.1.0 https://github.com/jeremyjumeau/ParsedownBundle

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

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony3 markdown parsedown

23/11 2016

v1.0

1.0.0.0 https://github.com/jeremyjumeau/ParsedownBundle

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

  Sources   Download

MIT

The Requires

 

twig symfony2 bundle symfony3 markdown parsedown