Accordion Test

Posted on Dec 12, 2025

Accordion Shortcode Test

This page demonstrates all the functionality of the accordion shortcode.

Basic accordion (all collapsed by default)

What is this?
This is a basic accordion item. It starts collapsed because no open parameter was set.
How does it work?
It uses native HTML <details> and <summary> elements, so it works without any JavaScript framework. Click the header to expand or collapse.
Can I add links?
Yes! This link demonstrates that links inside accordions keep the site’s red underline style and hover correctly.

Accordion with one panel open

Starts open
This panel is open by default because open="true" was set. Click the header to collapse it.
Starts closed
This panel stays closed until you click it.

Rich markdown content inside items

Formatted text

This panel shows bold, italic, and strikethrough text, plus a list:

  • First item
  • Second item
  • Third item
Code block

You can include inline code or preformatted blocks:

example: "code block"
Nested blockquote

“A blockquote inside an accordion item.”

This tests that nested markdown renders correctly.

Multiple accordions on one page

Group A - Item 1
This belongs to accordion group “group-a”.
Group A - Item 2
Each accordion on the page should have a unique id so items don’t conflict.
Group B - Item 1
This belongs to a different accordion group “group-b”. Separate IDs keep them independent.