protected function initializeCommonMark($mediaRoot)
    {
        $environment = Environment::createCommonMarkEnvironment();
        $environment->addInlineParser(new MediaParser($mediaRoot));

        return $environment;
    }