Definition at line 28 of file Markdown.php.
◆ __construct()
Definition at line 32 of file Markdown.php.
35 $this->markdown_to_html_transformation = $markdown_to_html->toHTML();
◆ fromString()
ILIAS\Data\Text\Shape\Markdown::fromString |
( |
string |
$text | ) |
|
◆ getMarkup()
ILIAS\Data\Text\Shape\Markdown::getMarkup |
( |
| ) |
|
◆ isRawStringCompliant()
ILIAS\Data\Text\Shape\Markdown::isRawStringCompliant |
( |
string |
$text | ) |
|
◆ toHTML()
ILIAS\Data\Text\Shape\Markdown::toHTML |
( |
Text\Text |
$text | ) |
|
Definition at line 38 of file Markdown.php.
40 if (!$text instanceof Text\Markdown) {
41 throw new \LogicException(
"Text does not match format.");
44 $this->markdown_to_html_transformation->transform(
45 $text->getRawRepresentation()
◆ toPlainText()
ILIAS\Data\Text\Shape\Markdown::toPlainText |
( |
Text\Text |
$text | ) |
|
Definition at line 50 of file Markdown.php.
52 if (!$text instanceof Text\Markdown) {
53 throw new \LogicException(
"Text does not match format.");
55 return new Text\PlainText($text->getRawRepresentation());
◆ $markdown_to_html_transformation
The documentation for this class was generated from the following file: