Skip to content

MarkdownViewEphemeralState

Unofficial

Ephemeral state for a markdown view, storing scroll position.

Import:

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

Signature:

export interface MarkdownViewEphemeralState extends Record<string, unknown>

Extends: Record<string, unknown>

Properties

PropertyTypeDescription
scrollnumberScroll position in the view.
subpath?stringLink subpath to navigate to, such as #Heading or #^block-id.

Workspace.openLinkText puts it here, and MarkdownView.setEphemeralState resolves it to a line. MarkdownView.getEphemeralState never returns it.

Links to this page: