MarkdownPostProcessor
Defined in: publish.d.ts:388
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
MarkdownPostProcessor(
el
,ctx
):void
|Promise
<any
>
Defined in: publish.d.ts:393
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
Parameters
el
ctx
Returns
void
| Promise
<any
>
Properties
sortOrder?
optional
sortOrder:number
Defined in: publish.d.ts:398
An optional integer sort order. Defaults to 0. Lower number runs before higher numbers.