Collapse pieces of content to hide information that is not essential for most of your readers, such as additional reference information that supports the main content.
Writerside enables you to collapse the following elements: chapters, procedures, code blocks, and definition list items. Set collapsible="true" on an element to render it collapsed by default with the icon that expands the content inside this element.
note
Readers will not be able to find anything in collapsed content via the browser search with Ctrl0F on the web page, so do not collapse important information.
You can change the default state for collapsible blocks by setting default-state="expanded" on a collapsible element. Do this when you want readers to be able to collapse information that is otherwise important.
By default, collapsible code blocks render the first line in collapsed state, but you can set a different collapsed state using the collapsed-title attribute.
Besides making the whole definition list collapsible, you can set the default state for every item individually.
Semantic markup example:
<deflistcollapsible="true"><deftitle="Expanded by default"default-state="expanded">
This is the definition of the first term.
</def><deftitle="Collapsed by default"default-state="collapsed">
This is the definition of the second term.
</def></deflist>