Skip to content

obsidian/MarkdownPreviewView

Mock of Obsidian’s MarkdownPreviewView, the reading mode of a Markdown view.

Class Description
MarkdownPreviewView Mock of Obsidian’s MarkdownPreviewView. Nothing is rendered: the text passed to MarkdownPreviewView.set and the scroll position are only remembered. The owning view registers it as its reading mode, so setViewData(data, true) and clear() reach it as they reach the edit mode; the mock is never IN reading mode, so getViewData() never reads it.