Skip to content

MarkdownPostProcessorContext

Defined in: publish.d.ts:404

Properties

docId

docId: string

Defined in: publish.d.ts:408


frontmatter

frontmatter: any

Defined in: publish.d.ts:415


sourcePath

sourcePath: string

Defined in: publish.d.ts:413

The path to the associated file. Any links are assumed to be relative to the sourcePath.

Methods

addChild()

addChild(child): void

Defined in: publish.d.ts:424

Adds a child component that will have its lifecycle managed by the renderer.

Use this to add a dependent child to the renderer such that if the containerEl of the child is ever removed, the component’s unload will be called.

Parameters

child

MarkdownRenderChild

Returns

void


getSectionInfo()

getSectionInfo(el): null | MarkdownSectionInformation

Defined in: publish.d.ts:431

Gets the section information of this element at this point in time. Only call this function right before you need this information to get the most up-to-date version. This function may also return null in many circumstances; if you use it, you must be prepared to deal with nulls.

Parameters

el

HTMLElement

Returns

null | MarkdownSectionInformation