Skip to content

MarkdownPreviewRenderer.setListCollapse method

MarkdownPreviewRenderer › setListCollapse

Unofficial

Collapses or expands the lists within an element.

Signature:

setListCollapse(el: HTMLElement, collapsed: boolean): void

Parameters:

Parameter Type Description
el HTMLElement The element containing the lists.
collapsed boolean Whether to collapse the lists.

Returns: void