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:

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

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

Since: 0.12.11