Skip to content

InlineTokenRenderParams

Parameters handed to an inline token render function.

Import:

import type { InlineTokenRenderParams } from '@mnaoumov/obsidian-lib/codemirror/inline-token-widgets';

Signature:

export interface InlineTokenRenderParams

Properties

PropertyTypeDescription
containerElHTMLElementThe element to render the token into.
matchRegExpExecArrayThe match of the token's regular expression.
sourcePathstringThe path of the note the token is in, or an empty string when it is not known.
state?EditorStateThe editor state, when the token renders in an editor. Absent in Reading view.

Links to this page: