matrix.org/templates/shortcodes/details.html

4 lines
218 B
HTML

<details {% if open and open!=false %}open{% endif %}>
<summary>{{ summary | markdown | safe | replace(from="<p>", to="") | replace(from="</p>", to="") | safe}}</summary>
{{ body | markdown | safe }}
</details>