(filename: string)
| 36 | * Returns true if the filename matches one of the markdown extensions. |
| 37 | */ |
| 38 | export const hasMarkdownExtension = (filename: string): boolean => { |
| 39 | if (!filename || typeof filename !== 'string') return false |
| 40 | return MARKDOWN_EXTENSIONS.some((ext) => filename.toLowerCase().endsWith(`.${ext}`)) |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Returns true if the path is an image file. |
no outgoing calls
no test coverage detected