Skip to content

MarkdownPreviewRenderer

Defined in: publish.d.ts:438

Constructors

new MarkdownPreviewRenderer()

new MarkdownPreviewRenderer(): MarkdownPreviewRenderer

Returns

MarkdownPreviewRenderer

Methods

createCodeBlockPostProcessor()

static createCodeBlockPostProcessor(language, handler): (el, ctx) => void

Defined in: publish.d.ts:452

Parameters

language

string

handler

(source, el, ctx) => void | Promise<any>

Returns

Function

Parameters
el

HTMLElement

ctx

MarkdownPostProcessorContext

Returns

void


registerPostProcessor()

static registerPostProcessor(postProcessor, sortOrder?): void

Defined in: publish.d.ts:443

Parameters

postProcessor

MarkdownPostProcessor

sortOrder?

number

Returns

void


unregisterPostProcessor()

static unregisterPostProcessor(postProcessor): void

Defined in: publish.d.ts:447

Parameters

postProcessor

MarkdownPostProcessor

Returns

void