src/MarkdownServiceProvider.php
protected function registerMarkdownParser()
    {
        $app = $this->app;

        $app->singleton('commonmark.docparser', function ($app) {
            $environment = $app['commonmark.environment'];

            return new DocParser($environment);
        });

        $app->alias('commonmark.docparser', DocParser::class);
    }
protected function registerMarkdownParser()
    {
        $app = $this->app;

        $app->singleton('commonmark.docparser', function ($app) {
            $environment = $app['commonmark.environment'];

            return new DocParser($environment);
        });

        $app->alias('commonmark.docparser', DocParser::class);
    }
Register the CommonMark DocParser.

@return void