MarkdownPreviewRenderer โ€บ createCodeBlockPostProcessor

MarkdownPreviewRenderer.createCodeBlockPostProcessor() method

Signature:

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

Parameters

ParameterTypeDescription
languagestring
handler(source: string, el: HTMLElement, ctx: MarkdownPostProcessorContext) โ‡’ Promise<any> | void

Returns:

(el: ``HTMLElement``, ctx: MarkdownPostProcessorContext) => void