(metadata?: CachedMetadata | null)
| 271 | } |
| 272 | |
| 273 | function firstLevelHeading(metadata?: CachedMetadata | null): string | undefined { |
| 274 | const heading = metadata?.headings?.find((entry) => entry.level === 1); |
| 275 | return scalarTitleValue(heading?.heading); |
| 276 | } |
| 277 | |
| 278 | function parentLabel(file: TFile): string { |
| 279 | const parent = file.parent?.path; |
no test coverage detected