(candidate: string)
| 3 | export const MARKDOWN_FILE_EXTENSIONS = ['.md', '.markdown'] as const |
| 4 | |
| 5 | export function isMarkdownFilePath(candidate: string): boolean { |
| 6 | const trimmed = candidate.trim() |
| 7 | if (!trimmed) return false |
| 8 | const ext = path.extname(trimmed).toLowerCase() |
| 9 | return (MARKDOWN_FILE_EXTENSIONS as readonly string[]).includes(ext) |
| 10 | } |
| 11 | |
| 12 | /** |
| 13 | * Vault-relative, POSIX-separated note path for `absPath`, or null when |
no outgoing calls
no test coverage detected