Skip to main content

MarkdownPreviewRenderer

Constructor

constructor();

Methods

registerPostProcessor

static registerPostProcessor(postProcessor: MarkdownPostProcessor, sortOrder?: number): void;

unregisterPostProcessor

static unregisterPostProcessor(postProcessor: MarkdownPostProcessor): void;

createCodeBlockPostProcessor

static createCodeBlockPostProcessor(language: string, handler: (source: string, el: HTMLElement, ctx: MarkdownPostProcessorContext) => Promise<any> | void): (el: HTMLElement, ctx: MarkdownPostProcessorContext) => void;