|
{{- $regex := .Get 0 -}}
|
|
{{- $color := .Get 1 | default "green" -}}
|
|
{{- $elReplace := print "<span class='code-callout " $color "'>$0</span>" -}}
|
|
{{- $code := .Inner | markdownify -}}
|
|
{{- $codeCallout := replaceRE $regex $elReplace $code -}}
|
|
{{ $codeCallout | safeHTML }}
|