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
Parameter | Type | Description |
---|---|---|
language | string | |
handler | (source: string, el: HTMLElement , ctx: MarkdownPostProcessorContext ) โ Promise <any> | void |
Returns:
(el: ``HTMLElement``, ctx:
MarkdownPostProcessorContext
) => void