public static function process($markdown, $flavor = null)
    {
        $parser = static::getParser($flavor);

        return $parser->parse($markdown);
    }
public static function process($markdown, $flavor = null)
    {
        $parser = static::getParser($flavor);

        return $parser->parse($markdown);
    }
public static function process ( $ markdown , $ flavor = null ) { $ parser = static :: getParser ( $ flavor ) ; return $ parser -> parse ( $ markdown ) ; }
Converts markdown into HTML.

@param string $markdown the markdown text to parse
@param string $flavor the markdown flavor to use. See [[$flavors]] for available values.
Defaults to [[$defaultFlavor]], if not set.
@return string the parsed HTML output
@throws InvalidArgumentException when an undefined flavor is given.
Converts markdown into HTML .