Skip to content

constructors/get-dom-events-handlers-constructor

This module extracts the DomEventsHandlersConstructor from Obsidian’s runtime by temporarily opening a markdown file in preview mode and intercepting the constructor passed to MarkdownPreviewRenderer.registerDomEvents.

Function Description
getDomEventsHandlersConstructor Extracts the DomEventsHandlersConstructor from Obsidian’s runtime. Opens a temporary markdown file in preview mode and intercepts the constructor passed to MarkdownPreviewRenderer.registerDomEvents.