MetadataCacheBlockCacheNode
Unofficial
A markdown syntax tree node of a block in the MetadataCacheBlockCache.
The node comes from Obsidian’s markdown parser, not from the metadata cache, so its
positionlines are 1-based, unlike those of aobsidian#CacheItem.
Import:
import type { MetadataCacheBlockCacheNode } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface MetadataCacheBlockCacheNodeProperties
| Property | Type | Description | |
|---|---|---|---|
| children? | MetadataCacheBlockCacheNode[] | The child nodes, for a node that has any. | |
| depth? | number | The level of a heading node, from 1 to 6. | |
| id? | string | The ID of the block, when it carries one. | |
| position | Pos | The position of the node in the file, with 1-based lines. | |
| type | string | The node type, such as heading, paragraph, listItem or code. |
Links to this page: