Skip to content

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 position lines are 1-based, unlike those of a obsidian#CacheItem.

Import:

import type { MetadataCacheBlockCacheNode } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface MetadataCacheBlockCacheNode

Properties

PropertyTypeDescription
children?MetadataCacheBlockCacheNode[]The child nodes, for a node that has any.
depth?numberThe level of a heading node, from 1 to 6.
id?stringThe ID of the block, when it carries one.
positionPosThe position of the node in the file, with 1-based lines.
typestringThe node type, such as heading, paragraph, listItem or code.

Links to this page: