MarkdownPostProcessor
Official
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
Import:
import type { MarkdownPostProcessor } from 'obsidian';Signature:
export interface MarkdownPostProcessorProperties
| Property | Type | Description | |
|---|---|---|---|
| sortOrder? | number | An optional integer sort order. Lower number runs before higher numbers. |
Links to this page: