Skip to content

MarkdownPreviewRenderer.getSectionContainer method

MarkdownPreviewRenderer › getSectionContainer

Unofficial

Gets the section whose element contains the given element.

Signature:

getSectionContainer(el: HTMLElement): unknown

Parameters:

Parameter Type Description
el HTMLElement The element to search for.

Returns: unknownThe containing section, or null if none.