Copied!
CloneableInstantiable
Methods
public __construct(League\CommonMark\Environment\EnvironmentInterface $environment)
public __invoke(string $markdown) : League\CommonMark\Output\RenderedContentInterface
 

Converts CommonMark to HTML.

  • see \MarkdownConverter::convert()
  • throws \CommonMarkException
public convert(string $input) : League\CommonMark\Output\RenderedContentInterface
 

Converts Markdown to HTML.

  • param string $input The Markdown to convert
  • return \RenderedContentInterface Rendered HTML
  • throws \CommonMarkException
public convertToHtml(string $markdown) : League\CommonMark\Output\RenderedContentInterface
 

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 getEnvironment() : League\CommonMark\Environment\EnvironmentInterface
Properties
protected League\CommonMark\Environment\EnvironmentInterface $environment
 
  • psalm-readonly
protected League\CommonMark\Renderer\MarkdownRendererInterface $htmlRenderer
 
  • psalm-readonly
protected League\CommonMark\Parser\MarkdownParserInterface $markdownParser
 
  • psalm-readonly
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration