Initialize foldable list behavior within the given root element.
Scans for .foldable-list-container elements, sets up toggle anchors
on list items with nested lists, and attaches click handlers for
fold/unfold toggling.
Parameters
root: HTMLElement
The root DOM element containing rendered Wikidot markup.
Initialize foldable list behavior within the given root element.
Scans for
.foldable-list-containerelements, sets up toggle anchors on list items with nested lists, and attaches click handlers for fold/unfold toggling.