{{ $picSrc := default "" (.Get "src") }} {{ $id := default "" (.Get "id") }} {{ $imgColWidth := default 3 (.Get "imgColWidth") }} {{ $imgLegend := default "" (.Get "imgLegend") }} {{ $txtWidth := sub 12 $imgColWidth }} {{ $imgPos := default "left" (.Get "imgPos") }} {{ $markdown := .Inner | markdownify }} {{ $hasP := strings.Contains $markdown "

" }} {{ if ne $id "" }}

{{ else }}
{{ end }}
{{ if not $hasP }}

{{ end }} {{ $markdown }} {{ if not $hasP }}

{{ end }}