private function renderFile(MarkdownFile $file) { $document = $this->markdownParser->parse($file->getContent()); $filename = $this->replaceExtension($file->relativeFilename); return new HtmlFile($filename, $document->getContent(), $file); }