Linktext is any internal link that is composed of a path and a subpath, such as βMy note#Headingβ Linkpath (or path) is the path part of a linktext Subpath is the heading/block ID part of a linktext.
A scope receives keyboard events and binds callbacks to given hotkeys. Only one scope is active at a time, but scopes may define parent scopes (in the constructor) and inherit their hotkeys.
This class implements a plaintext-based editable file view, which can be loaded and saved given an editor.
Note that by default, this view only saves when itβs closing. To implement auto-save, your editor should call this.requestSave() when the content is changed.
Given the contents of a file, get information about the frontmatter of the file, including whether there is a frontmatter block, the offsets of where it starts and ends, and the frontmatter text.
Construct a fuzzy search callback that runs on a target string. Performance may be an issue if you are running the search for more than a few thousand times. If performance is a problem, consider using prepareSimpleSearch instead.
Render some LaTeX math using the MathJax engine. Returns an HTMLElement. Requires calling finishRenderMath when rendering is all done to flush the MathJax stylesheet.
Returns true if the API version is equal or higher than the requested version. Use this to limit functionality that require specific API versions to avoid crashing on older Obsidian builds.
A post processor receives an element which is a section of the preview.
Post processors can mutate the DOM to render various things, such as mermaid graphs, latex equations, or custom controls.
If your post processor requires lifecycle management, for example, to clear an interval, kill a subprocess, etc when this element is removed from the app, look into MarkdownPostProcessorContext.addChild()
This is now deprecated - it is now mapped directly to editorInfoField, which return a MarkdownFileInfo, which may be a MarkdownView but not necessarily.