Skip to content

MarkdownPreviewRenderer.getSectionForElement method

MarkdownPreviewRenderer › getSectionForElement

Unofficial

Gets the section whose element contains the given element.

Signature:

getSectionForElement(el: HTMLElement): unknown

Parameters:

Parameter Type Description
el HTMLElement The element to search for.

Returns: unknownThe section, or null if none.