hugo-book-theme/exampleSite/content.en/docs/shortcodes/details.md
逊狼 79777a9e84 Revert "Revert "🐞 fix issues 352""
This reverts commit fa0d46ccf5.
2021-07-18 23:10:17 +08:00

22 lines
459 B
Markdown

# Details
Details shortcode is a helper for `details` html5 element. It is going to replace `expand` shortcode.
## Example
```tpl
{{</* details "Title" [open] */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /details */>}}
```
```tpl
{{</* details title="Title" open=true */>}}
## Markdown content
Lorem markdownum insigne...
{{</* /details */>}}
```
{{< details "Title" open >}}
## Markdown content
Lorem markdownum insigne...
{{< /details >}}