(ext: string)
| 51 | } |
| 52 | |
| 53 | function isCodeFile(ext: string): boolean { |
| 54 | return [ |
| 55 | "ts", |
| 56 | "tsx", |
| 57 | "js", |
| 58 | "jsx", |
| 59 | "json", |
| 60 | "py", |
| 61 | "css", |
| 62 | "html", |
| 63 | "yaml", |
| 64 | "yml", |
| 65 | "sh", |
| 66 | "bash", |
| 67 | "sql", |
| 68 | "xml", |
| 69 | "toml", |
| 70 | ].includes(ext); |
| 71 | } |
| 72 | |
| 73 | // Simple markdown renderer |
| 74 | function renderMarkdown(text: string): string { |