public static function markdown($text)
    {
        if (!is_string($text)) {
            return $text;
        }

        $markdown = \Parsedown::instance();

        return $markdown->parse($text);
    }
public static function markdown($text)
    {
        if (!is_string($text)) {
            return $text;
        }

        $markdown = \Parsedown::instance();

        return $markdown->parse($text);
    }
public static function markdown ( $ text ) { if ( ! is_string ( $ text ) ) { return $ text ; } $ markdown = \ Parsedown :: instance ( ) ; return $ markdown -> parse ( $ text ) ; }
Markdown filter.

Example usage inside template would be:

```
<div class="long_description">
<xsl:value-of
select="php:function('phpDocumentor\Plugin\Core\Xslt\Extension::markdown',
string(docblock/long-description))"
disable-output-escaping="yes" />
</div>
```

@param string $text

@return string
Markdown filter .