class
League
/
CommonMark
/
MarkdownConverter
MarkdownConverter
Implements
Properties
protected
$environment
Default: null
protected
$markdownParser
Default: null
protected
$htmlRenderer
Default: null
Methods
public
__construct ( EnvironmentInterface $environment ) : void
public
getEnvironment ( ) : void
public
convert ( string $input ) : RenderedContentInterface
Converts Markdown to HTML.
Parameters
-
$input
string
The Markdown to convert
deprecated
public
convertToHtml ( string $markdown ) : RenderedContentInterface
Converts Markdown to HTML.
Parameters
-
$markdown
string
The Markdown to convert
public
__invoke ( string $markdown ) : void
Converts CommonMark to HTML.
See
- \MarkdownConverter::convert()