{{- /* Renders a blockquote. If the first paragraph starts with **Note**, **Tip**, **Important**, **Warning**, or **Caution** (the form our docs preprocessor produces from GitHub-style `> [!NOTE]` markers), we emit it as an alert callout with a typed CSS hook so the docs prose can style each kind distinctly. Otherwise it's a plain quote. */ -}} {{- $kinds := slice "Note" "Tip" "Important" "Warning" "Caution" -}} {{- $kind := "" -}} {{- $body := .Text -}} {{- range $kinds -}} {{- $marker := printf "

%s

" . -}} {{- if hasPrefix $body $marker -}} {{- $kind = . -}} {{- $body = strings.TrimPrefix $marker $body -}} {{- end -}} {{- end -}} {{- if $kind -}}
{{ $kind }}
{{ $body | safeHTML }}
{{- else -}}
{{ $body | safeHTML }}
{{- end -}}