(filePath: string)
| 35 | } |
| 36 | |
| 37 | function getNoteName(filePath: string): string { |
| 38 | const basename = path.posix.basename(filePath) |
| 39 | return normalizeImportEntryName( |
| 40 | basename.toLowerCase().endsWith('.md') ? basename.slice(0, -3) : basename, |
| 41 | 'Untitled note', |
| 42 | ) |
| 43 | } |
| 44 | |
| 45 | function parseFrontmatter(content: string): { |
| 46 | content: string |
no test coverage detected