feat(app): Render markdown files in file pane (#427)

Detect .md and .markdown files in the shared file pane and render them as markdown instead of syntax highlighted code. This makes README-style files easier to read without changing the existing preview flow for other text files or .mdx.

Keep the change focused to the app renderer by reusing the existing markdown stack and adding a narrow extension check with targeted coverage.
This commit is contained in:
Aaron Florey
2026-04-16 10:33:49 +08:00
committed by GitHub
parent 57312d4f75
commit 1885d8602f
3 changed files with 60 additions and 2 deletions
@@ -0,0 +1,4 @@
export function isRenderedMarkdownFile(filePath: string): boolean {
const normalizedPath = filePath.trim().toLowerCase();
return normalizedPath.endsWith(".md") || normalizedPath.endsWith(".markdown");
}