$field->markdown()
Converts markdown to valid HTML
$field->markdown(array $options = [ ]): Kirby\Content\Field
Parameters
Name | Type | Default |
---|---|---|
$options | array |
[ ]
|
Return type
This method modifies the existing $field
object it is applied to and returns it again.
Aliases
You can use the following aliases for this field method in your template:
$field->md(…)
Examples
<?= $page->text()->markdown() ?>