getPathMapping
The part of a missing path that a candidate path replaced, found by dropping the path segments they end with in common.
Import:
import { getPathMapping } from '@mnaoumov/obsidian-lib/broken-link-candidates';Signature:
function getPathMapping(oldPath: string, newPath: string): PathMappingParameters:
| Parameter | Type | Description |
|---|---|---|
oldPath |
string | The missing path. |
newPath |
string | The candidate path. |
Returns: PathMapping — The prefixes that differ.