dotHIV parsedown bundle for Symfony2 install Parsedown and provides a twig filter
composer require dothiv/dothiv-parsedown-bundle dev-master
Add
new Dothiv\Bundle\ParsedownBundle\DothivParsedownBundle(),
to your AppKernel.php
.
In twig templates:
{{ var|markdown }}