Skip to content

MarkdownViewState

Unofficial

State of a markdown view, as returned by MarkdownView.getState().

Import:

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

Signature:

export interface MarkdownViewState extends Record<string, unknown>

Extends: Record<string, unknown>

Properties

PropertyTypeDescription
backlinkOpts?unknownState of the embedded backlinks component, present only while it is shown.
backlinksbooleanWhether the embedded backlinks are shown.
file?stringPath of the file in the view, absent when no file is open.
modeMarkdownViewModeTypeCurrent mode of the view.
sourcebooleanWhether the editor is in source mode rather than live preview.

Links to this page: