{{ $type := .Get 0 }} {{ $title := default ( .Get 1 ) $type }} {{ $raw := (markdownify .Inner | chomp) }} {{ $block := findRE "(?is)^<(?:address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h(?:1|2|3|4|5|6)|header|hgroup|hr|li|main|nav|noscript|ol|output|p|pre|section|table|tfoot|ul|video)\\b" $raw 1 }} {{ $icon := dict "note" "fa-sticky-note" "tip" "fa-lightbulb-o" "example" "fa-file-text" "question" "fa-question" "info" "fa-exclamation-circle" "warning" "fa-exclamation-triangle" "error" "fa-times-circle" }}
{{ i18n $title | default $title | title }}
{{- if or $block (not $raw) }}{{ $raw }}{{ else }}

{{ $raw }}

{{ end -}}