League\CommonMark\CommonMarkConverter::__construct PHP Method

__construct() public method

Create a new commonmark converter instance.
public __construct ( array $config = [], Environment $environment = null )
$config array
$environment Environment
    public function __construct(array $config = [], Environment $environment = null)
    {
        if ($environment === null) {
            $environment = Environment::createCommonMarkEnvironment();
        }
        $environment->mergeConfig($config);
        parent::__construct(new DocParser($environment), new HtmlRenderer($environment));
    }
CommonMarkConverter