class
League
/
CommonMark
/
MarkdownConverter
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
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()