kirbytext($text, $page = null)

Parses any text with Markdown and Kirbytext

  • $text (string or Field)
  • $page (Page)
    Optional page reference if $text is a string
  • return (string)

Example

<?php echo kirbytext($page->text()) ?>

2.3.2 +

Parse Kirbytext for another page

<?php echo kirbytext('(image: road.jpg)', $page->children()->first()) ?>