function kirbytext($text, $markdown = true) { $text = kirbytext::get($text); if ($markdown) { $text = markdown($text); } return $text; }