{{- $attrs := "" }} {{- range $key, $value := .Attributes }} {{- $attrs = printf "%s %s=%q" $attrs $key $value }} {{- end }} {{- $attrs = trim $attrs " " }} {{- if eq .Type "alert" -}} {{- dict "Text" .Text "Type" .AlertType "Attributes" .Attributes | partial "plugin/alert.html" -}} {{- else -}}
{{ .Text | safeHTML }}{{- end -}}