Skip to content

obsidian/MarkdownView

Mock of Obsidian’s MarkdownView, the view that edits and previews Markdown files.

Class Description
MarkdownView Mock of Obsidian’s MarkdownView. The view is always in source mode, and owns no text of its own: as in Obsidian, its modes do. currentMode IS MarkdownView.editMode, which holds the editor, so MarkdownView.editor, MarkdownView.getViewData and the inherited data are three views onto that one buffer — an edit made through any of them is visible through the others.