MarkdownPreviewRenderer.setListCollapse method
MarkdownPreviewRenderer › setListCollapse
Unofficial
Collapses or expands the lists within an element.Signature:
setListCollapse(el: HTMLElement, collapsed: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| el | HTMLElement | The element containing the lists. |
| collapsed | boolean | Whether to collapse the lists. |
Returns: void