{{/* A sanitized summary that will get the first paragraph content or .Page.Params.Summary */}}

{{- with .Page.Params.Summary -}}
  {{- . -}}
{{- else -}}
  {{- $first_p_match := (findRE `<p>(.*?)</p>` .Content 1) -}}
  {{- if $first_p_match -}}
    {{- (replaceRE `<.*?>` "" (index $first_p_match 0)) | safeHTML -}}
  {{- end -}}
{{- end -}}
