--TEST-- renderContentFile: renders .html by inclusion and .md via Parsedown --FILE-- Hello world
'); echo trim(renderContentFile($htmlFile)) . "\n"; // Markdown — converted to HTML by Parsedown $mdFile = "$dir/post.md"; file_put_contents($mdFile, "# My Title\n\nA paragraph."); $html = renderContentFile($mdFile); echo (str_contains($html, 'A paragraph.
') ? 'p ok' : 'p missing') . "\n"; // Unknown extension — returns empty string $txtFile = "$dir/notes.txt"; file_put_contents($txtFile, 'raw text'); echo (renderContentFile($txtFile) === '') ? 'empty ok' : 'not empty'; echo "\n"; unlink($htmlFile); unlink($mdFile); unlink($txtFile); rmdir($dir); ?> --EXPECT--Hello world
h1 ok p ok empty ok