Display content from HTML file on a page?

Is it possible to pass the content of a md file through kirbytext() so that image links work?
Something like this?

<?php
if ($file = $page->contentfile()->toFile()) {
  $file->show()->kirbytext();
}?>

At the moment I just get the text:

Thanks