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

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

2.3.2 +

Parse Kirbytext for another page

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

Is something missing or incorrect? Edit this page on Github…