spoiler.html 280 B

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