Documentation

MarkdownConverter extends Converter
in package

Converts CommonMark-compatible Markdown to HTML.

Table of Contents

$docParser  : DocParserInterface
The document parser instance.
$environment  : EnvironmentInterface
$htmlRenderer  : ElementRendererInterface
The html renderer instance.
__construct()  : mixed
Create a new commonmark converter instance.
__invoke()  : string
Converts CommonMark to HTML.
convertToHtml()  : string
Converts CommonMark to HTML.
getEnvironment()  : EnvironmentInterface

Properties

Methods

__invoke()

Converts CommonMark to HTML.

public __invoke(string $commonMark) : string
Parameters
$commonMark : string
Tags
see
Converter::convertToHtml
throws
RuntimeException
Return values
string

convertToHtml()

Converts CommonMark to HTML.

public convertToHtml(string $commonMark) : string
Parameters
$commonMark : string
Tags
throws
RuntimeException
Return values
string

Search results