{{ $id := delimit (shuffle (seq 1 9)) "" }} {{ $open := .Get "open" }} {{ $lang := .Get "language" }} {{ $opts := .Get "opts" }} {{- if $lang -}}
{{- if .Get "title" }}{{ .Get "title" | markdownify }}{{ end -}} {{ $trInner := trim .Inner "\n" }} {{- transform.Highlight $trInner $lang $opts -}}
{{ else }} {{ errorf "If you want to use the \"collapsable code\" shortcode, you need to pass a mandatory \"language\" param. The issue occured in %q (%q)" .Page.File .Page.Permalink }} {{- end -}}