Skip to content

markdown-code-block-processor-registrar

Registers a markdown code block processor.

Class Description
PluginMarkdownCodeBlockProcessorRegistrar A registrar for markdown code block processors. Obsidian ties a processor registered through Plugin.registerMarkdownCodeBlockProcessor to the plugin’s unload, so a component that registers one from its own onload and is later unloaded while the plugin stays loaded leaves the processor behind, and registering the same language again throws Code block postprocessor for language ... is already registered. A lifetime owner ties the processor to that component instead.
Interface Description
MarkdownCodeBlockProcessorRegistrar A registrar for markdown code block processors.
Type Description
MarkdownCodeBlockProcessorLifetimeOwnerProvider Resolves the component whose unload unregisters a code block processor, for a registration that names none.