Testing the accordion shortcode in revealjs
09-Apr-2026
{{< accordion yaml-simple >}}
{{< accordion yaml-many-items >}}
First item collapsed (default), second item expanded.
{{< accordion yaml-collapsed >}}
{{< accordion yaml-custom-id >}}
{{< accordion yaml-markdown >}}
{{< accordion yaml-multiline-markdown >}}
This is multiline content.
This is bold and italic.
{{< accordion header="Click to expand" body="This content is defined inline." >}}
{{< accordion header="This starts expanded" body="Expanded content by default." collapsed="false" >}}
{{< accordion header="Custom item id" body="Custom ids are useful for anchor links." id="custom-item-revealjs" >}}
{{< accordion items='[{"header":"Inline Item 1","body":"Content for item 1."},{"header":"Inline Item 2","body":"Content for item 2.","collapsed":false}]' >}}
{{< accordion header="**Bold header**" body="This is **bold** and *italic*" >}}
{{< accordion >}}
{{< accordion yaml-simple label="mixed" header="Header" body="Body" >}}
{{< accordion label="invalid label" header="Header" body="Body" >}}
{{< accordion nonexistent >}}
{{< accordion yaml-empty >}}
{{< accordion yaml-missing-header >}}
{{< accordion yaml-missing-body >}}
{{< accordion header="Header only" >}}
{{< accordion body="Body only" >}}