parsedown\Parsedown::instance PHP Method

instance() static public method

# Static
static public instance ( $name = 'default' )
    static function instance($name = 'default')
    {
        if (isset(self::$instances[$name])) {
            return self::$instances[$name];
        }
        $instance = new Parsedown();
        self::$instances[$name] = $instance;
        return $instance;
    }