Details Shortcode

Details shortcode is a helper for HTML Details Element.

  • title is used for the contents of summary tag in details element.

  • open is used for the attribution of the details element. Specify the initial status of the details element.

Code Example #

{{< details "Title" [open] >}}
## Markdown content
Lorem markdownum insigne...
{{< /details >}}

{{< details title="Title" open=true >}}
## Markdown content
Lorem markdownum insigne...
{{< /details >}}

Previews #

This will be closed by default

Markdown content

Lorem markdownum insigne…

This is Opened by default

Markdown content

Lorem markdownum insigne…

Details Shortcode was last edited on 2021-01-13 @16a6725 : update formatting