accordion

Wrapping a series of expand shortcodes with accordion means only one expand in the series can be expanded at a time. When a user opens an accordioned expand with another one already open, accordion automatically collapses the previously-opened one.

{{< accordion >}}

{{< expand "Example expand" >}}
Example expanded text.
{{< /expand >}}

{{< expand "Example expand 2" >}}
Example expanded text 2.
{{< /expand >}}

{{< /accordion >}}

Examples

{{< accordion >}}

{{< expand "Example expand" >}}
Example expanded text.
{{< /expand >}}

{{< expand "Example expand scroll" scroll >}}
Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text.
{{< /expand >}}

{{< expand "Example expand 2" >}}
Example expanded text 2.
{{< /expand >}}

{{< /accordion >}}

Renders to:

Example expand
Example expanded text.
Example expand scroll
Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text. Example expanded text.
Example expand 2
Example expanded text 2.
Warning
The accordion shortcode currently breaks when within a block quote (> in markdown).