MarkdownViewEphemeralState
Unofficial
Ephemeral state for a markdown view, storing scroll position.
Import:
import type { MarkdownViewEphemeralState } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface MarkdownViewEphemeralState extends Record<string, unknown>Extends: Record<string, unknown>
Properties
| Property | Type | Description | |
|---|---|---|---|
| scroll | number | Scroll position in the view. | |
| subpath? | string | Link 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: