Skip to content

MarkdownPreviewRenderer.createCodeBlockPostProcessor method

MarkdownPreviewRenderer › createCodeBlockPostProcessor

Official

Signature:

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

Parameters:

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

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

Since: 0.12.11