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));
}