Skip to content

BlockSubpathResult

Official

Subpath result for a block from resolveSubpath

Import:

import type { BlockSubpathResult } from 'obsidian';

Example:

console.log(resolveSubpath(myNoteCache, '#^foo'));

Signature:

export interface BlockSubpathResult extends SubpathResult

Extends: SubpathResult

Properties

Property Type Description
block BlockCache The block cache.
end Loc | null The end location of the subpath.
(Inherited from SubpathResult)
list? ListItemCache The list item cache, in case the block is a list item.
start Loc The start location of the subpath.
(Inherited from SubpathResult)
type 'block' The type of the subpath result.

Links to this page: