Filter.php
public static function filterMarkdown(Node $node, $indent, $newLine)
    {

        if (!class_exists('Parsedown'))
            throw new Compiler\Exception(
                "Failed to compile Markdown: "
                ."Please install the erusev/parsedown composer package"
            );

        $parsedown = new \Parsedown();

        return $parsedown->text($node->text());
    }
public static function filterMarkdown(Node $node, $indent, $newLine)
    {

        if (!class_exists('Parsedown'))
            throw new Compiler\Exception(
                "Failed to compile Markdown: "
                ."Please install the erusev/parsedown composer package"
            );

        $parsedown = new \Parsedown();

        return $parsedown->text($node->text());
    }
public static function filterMarkdown ( Node $ node , $ indent , $ newLine ) { if ( ! class_exists ( 'Parsedown' ) ) throw new Compiler \ Exception ( "Failed to compile Markdown: " . "Please install the erusev/parsedown composer package" ) ; $ parsedown = new \ Parsedown ( ) ; return $ parsedown -> text ( $ node -> text ( ) ) ; }
Compiles the markdown content to HTML.

@param Node   $node    the node to be compiled
@param string $indent  the indentation to use on each child
@param string $newLine the new-line to append after each line

@return string the wrapped HTML-string
@throws Compiler\Exception when the Parsedown package is not installed
Compiles the markdown content to HTML .