markdown function for Twig and Slim