Skip to content

Kirby 4.4.1

markdown()

Parses markdown in the given string. Shortcut for $kirby->markdown($text)

markdown(?string $text = null, array $options = [ ]): string

Parameters

Name Type Default
$text string|null null
$options array [ ]

Return type

string

Example

<?= markdown($page->text()) ?>