{{- $alerttype := .AlertType }} {{- $text := .Text }} {{- if not site.Params.disableBlockquoteNoticeSupport }} {{- range findRESubmatch "^(
)?\\[!(\\w+)\\]\\n(.*?)(
)?\\s*$" $text 1 }} {{- $alerttype = lower (index . 2) }} {{- $text = printf "%s%s%s" (index . 1) (index . 3) (index . 4) }} {{- end }} {{- end }} {{- if $alerttype }} {{- partial "shortcodes/notice.html" (dict "page" .Page "style" $alerttype "content" $text ) }} {{- else }}{{- $text | safeHTML }}{{- end }}