{{- $terminalLanguages := slice "bash" "sh" "shell" "powershell" }} {{- $terminalClass := "" }} {{- $frame := .Attributes.frame }} {{- if and (ne $frame "none") (in $terminalLanguages .Type) }} {{- $terminalClass = " is-terminal" }} {{- end }} {{- $title := .Attributes.title }} {{- $titleClass := "" }} {{ with $title}} {{- $titleClass = " has-title" }} {{- end }} {{- $result := transform.HighlightCodeBlock . }}