MarkdownPostProcessorContext
API reference uses a reviewed source snapshot. Source links open the published source; unverified line locations are omitted.
Defined in: markdown.ts:74
Properties
Section titled “Properties”docId:
string
Defined in: markdown.ts:76
frontmatter
Section titled “frontmatter”frontmatter:
any
Defined in: markdown.ts:85
optionalmode?:MarkdownContributionMode
Defined in: markdown.ts:87
Rendering mode for this processor invocation.
sourcePath
Section titled “sourcePath”sourcePath:
string
Defined in: markdown.ts:83
The path to the associated file. Any links are assumed to be relative to
the sourcePath.
surface?
Section titled “surface?”
optionalsurface?:MarkdownSurfaceContext
Defined in: markdown.ts:89
Owning Markdown surface and optional consumer context.
Methods
Section titled “Methods”addChild()
Section titled “addChild()”addChild(
child):void
Defined in: markdown.ts:101
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
Section titled “Parameters”Returns
Section titled “Returns”void
getSectionInfo()
Section titled “getSectionInfo()”getSectionInfo(
el):MarkdownSectionInformation|null
Defined in: markdown.ts:110
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
Section titled “Parameters”HTMLElement
Returns
Section titled “Returns”MarkdownSectionInformation | null