Свойство | Type | Description | |
---|---|---|---|
$docParser | The document parser instance. | ||
$htmlRenderer | League\CommonMark\ElementRendererInterface | The html renderer instance. |
Méthode | 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 | |
Résultat | string |
protected DocParser,League\CommonMark $docParser | ||
Résultat |