* Extracts a display title from a file path.
(filePath: string)
| 157 | * Extracts a display title from a file path. |
| 158 | */ |
| 159 | function titleFromPath(filePath: string): string { |
| 160 | const filename = filePath.split('/').pop() || filePath |
| 161 | return filename.replace(/\.md$/, '') |
| 162 | } |
| 163 | |
| 164 | export const obsidianConnector: ConnectorConfig = { |
| 165 | ...obsidianConnectorMeta, |