Skip to content

Markdown

spoiler / accordion / collapse

Sometimes you want to see only a brief description at first glance, with the option to reveal further explanations on the topic that are hidden by default. In Markdown this is achieved with the details and summary tags. Example:

Remove switch from monitoring The following items need to be completed.
  • bla
  • jdsfkl

No Markdown can be used inside the details tags; instead you must use HTML for formatting.

Code:

<details>
  <summary>Remove switch from monitoring</summary>
  The following items need to be completed.
  <ul><li>bla</li>
    <li>jdsfkl</li></ul>
</details>