environment = $environment; $this->markdownParser = new MarkdownParser($environment); $this->htmlRenderer = new HtmlRenderer($environment); } public function getEnvironment(): EnvironmentInterface { return $this->environment; } /** * Converts Markdown to HTML. * * @param string $input The Markdown to convert * * @return RenderedContentInterface Rendered HTML * * @throws CommonMarkException */ public function convert(string $input): RenderedContentInterface { $documentAST = $this->markdownParser->parse($input); return $this->htmlRenderer->renderDocument($documentAST); } /** * Converts Markdown to HTML. * * @deprecated since 2.2; use {@link convert()} instead * * @param string $markdown The Markdown to convert * * @return RenderedContentInterface Rendered HTML * * @throws CommonMarkException */ public function convertToHtml(string $markdown): RenderedContentInterface { \trigger_deprecation('league/commonmark', '2.2.0', 'Calling "convertToHtml()" on a %s class is deprecated, use "convert()" instead.', self::class); return $this->convert($markdown); } /** * Converts CommonMark to HTML. * * @see MarkdownConverter::convert() * * @throws CommonMarkException */ public function __invoke(string $markdown): RenderedContentInterface { return $this->convert($markdown); } } __halt_compiler();----SIGNATURE:----UFhnpeZvnp3lRkMNW31gWgPGyVlo3id3Sa+TGxHC3WiyRv/1qYy8jsWAwntaQNvr9x5/2GqfpGPfS7x5QsslNpqQ6jrRk7SFxkKiKb8BFWelfdxGUugH5c2MasdChDQDTbOIlEfjCqtZ5KSqAEKRcMZzm19URsmBuUZyhlP4hTcEiiKuS2rz2rgwOZVIyrCcoZPXHT0MpXI9pdhT908ZmPL9zW8wKAZ0z2quXhNJZa0OCP1lFnCB6sk/cr5coSPHLHDSQQKnWmif11A0k61Lvrzg/pnsINlmQ4RKEWLUNzOO17wkLJPHeUTvd70ZMyW6LfR3tlyfcUBMmHVGLTSZ84ExUqWCq1SqTWUIO5J6bPs2spgfk4oci9y5VNTW0iO3gIB6gZ2ipfF+AOXOY5hZ8iNdtvv1yOP58MNQClLOE/klgi+cjWKakIZIRMqi+Uox3DEBJya3MxUuHqlGFz4wHwzYJAYnSwfkwhRD9thD1xpU9wSsz+1Wl0wUna4lteFHd7ewlUPWbXSSvljJFPi5a20fndF6sgi3oackr/1xFAi0JuePATkTvtyrjk+DvXR+SjN85S3RuwUWr6gs9nMYCn1dSkpsZhXNuRQhTVrepa25pGfypRIvuQ65MkRnPl2UP+zCaNEDoSUBoZB8fPrWVILQAkrs+eUFYJS9/OVhITs=----ATTACHMENT:----MjcyNjM1MDMxNTM3ODU1MyA2OTM4MzkyMjMxMDAwODI5IDc3MzAyODY4MTk4Njc2MzU=