Property | Type | Description | |
---|---|---|---|
$docParser | The document parser instance. | ||
$htmlRenderer | League\CommonMark\ElementRendererInterface | The html renderer instance. |
Method | Description | |
---|---|---|
__construct ( |
Create a new commonmark converter instance. | |
__invoke ( $commonMark ) : string | Converts CommonMark to HTML. | |
convertToHtml ( string $commonMark ) : string | Converts CommonMark to HTML. |
public __construct ( |
||
$docParser | ||
$htmlRenderer | League\CommonMark\ElementRendererInterface |
public convertToHtml ( string $commonMark ) : string | ||
$commonMark | string | |
return | string |
protected DocParser,League\CommonMark $docParser | ||
return |