Skip to content

Kirby 4.1.2

$field->markdown()

Converts markdown to valid HTML

$field->markdown(array $options = [ ]): Kirby\Content\Field

Parameters

Name Type Default
$options array [ ]

Return type

Kirby\Content\Field

Aliases

You can use the following aliases for this field method in your template:

  • $field->md(…)

Example

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