(relPath: string)
| 1448 | } |
| 1449 | |
| 1450 | function noteTitleFromRelPath(relPath: string): string { |
| 1451 | const base = path.posix.basename(relPath) |
| 1452 | return base.replace(/\.md$/i, '') || 'Note' |
| 1453 | } |
| 1454 | |
| 1455 | function sanitizePdfFilename(name: string): string { |
| 1456 | const sanitized = name |