lib/PicoTwigExtension.php
public function markdownFilter($markdown, array $meta = array())
    {
        $markdown = $this->getPico()->substituteFileContent($markdown, $meta);
        return $this->getPico()->parseFileContent($markdown);
    }
public function markdownFilter($markdown, array $meta = array())
    {
        $markdown = $this->getPico()->substituteFileContent($markdown, $meta);
        return $this->getPico()->parseFileContent($markdown);
    }
public function markdownFilter ( $ markdown , array $ meta = array ( ) ) { $ markdown = $ this -> getPico ( ) -> substituteFileContent ( $ markdown , $ meta ) ; return $ this -> getPico ( ) -> parseFileContent ( $ markdown ) ; }
Parses a markdown string to HTML

This method is registered as the Twig `markdown` filter. You can use it
to e.g. parse a meta variable (`{{ meta.description|markdown }}`).
Don't use it to parse the contents of a page, use the `content` filter
instead, what ensures the proper preparation of the contents.

@see Pico::substituteFileContent()
@see Pico::parseFileContent()

@param string $markdown markdown to parse
@param array  $meta     meta data to use for %meta.*% replacement

@return string parsed HTML
Parses a markdown string to HTML