resolveSubpath() function
Resolve the given subpath to a reference in the MetadataCache.
Signature:
export function resolveSubpath(cache: CachedMetadata, subpath: string): HeadingSubpathResult | BlockSubpathResult | FootnoteSubpathResult | null;
Parameters
Parameter | Type | Description |
---|---|---|
cache | CachedMetadata | |
subpath | string |
Returns:
HeadingSubpathResult
|
BlockSubpathResult
|
FootnoteSubpathResult
| null