Skip to content

Token

Unofficial

A clickable token in the editor with position, text, and type information.

Import:

import type { Token } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface Token extends EditorRange

Extends: EditorRange

Properties

PropertyTypeDescription
fromEditorPositionThe start position.
(Inherited from EditorRange)
textstringText content of the token.
toEditorPositionThe end position.
(Inherited from EditorRange)
type'external-link' | 'internal-link' | 'tag'Type of the token.