Skip to content

Kirby 6.0.1

$field->markdown()

Converts markdown to valid HTML

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

Parameters

Name Type Default
$options array []

Return type

Kirby\Content\Field

This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →

Aliases

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

  • $field->md(…)

Examples

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