dev-master
9999999-dev https://github.com/Bgaze/ParsedownBundleAdd support for parsedown and parsedown-extra in Symfony 2 by providing services and Twig filters.
MIT
The Requires
twig symfony2 bundle markdown parsedown
Add support for parsedown and parsedown-extra in Symfony 2 by providing services and Twig filters.
This project is not maintained anymore. Feel free to fork it and upgrade it as you want., (*1)
Add support for parsedown and parsedown-extra in Symfony 2., (*2)
Provides :, (*3)
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(),
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);
Add support for parsedown and parsedown-extra in Symfony 2 by providing services and Twig filters.
MIT
twig symfony2 bundle markdown parsedown