{{- if .IsNamedParams -}} {{ highlight (trim .Inner "\n\r") (.Get "lang") (default "" (.Get "options")) }} {{- if or (.Get "link") (or (.Get "attrlink") (or (or (.Get "title") (.Get "caption")) (.Get "attr"))) -}}
{{- with (.Get "title") -}}

{{ . }}

{{- end -}} {{- with (.Get "caption") -}}

{{ . }}

{{- end -}} {{- if and (.Get "attr") (not (.Get "attrlink")) -}}

Source: {{ (.Get "attr") | markdownify }}

{{- end -}} {{- with (.Get "attrlink") -}}

Source: {{ default . (($.Get "attr") | markdownify) }}

{{- end -}} {{- with (.Get "link") -}} {{- $target := ($.Get "linkTarget") | default "_blank" -}}

Link: {{ default . (($.Get "linkTxt") | markdownify) }}

{{- end -}}
{{- end -}} {{- else -}} {{- if len .Params | eq 2 -}}{{ highlight (trim .Inner "\n\r") (.Get 0) (.Get 1) }}{{ else }}{{ highlight (trim .Inner "\n\r") (.Get 0) "" }}{{- end -}} {{- end -}}