{{- $id := printf "spoiler-%d" .Ordinal -}} <details class="spoiler {{ .Get "class" }}" {{ with .Get "style" }}style="{{ . | safeCSS }}"{{ end }} id="{{$id}}"> <summary>{{ .Get "text" | markdownify | emojify }}</summary> <p>{{ .Inner | markdownify | emojify }}</p> </details>