Skip to content

Kirby 5.0.4

markdown()

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

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

Parameters

Name Type Default
$text stringornull null
$options array [ ]

Return type

string

Examples

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