{{ $htmlTable := .Inner | .Page.RenderString }} {{ $class := .Get 0 }} {{ $old := "" }} {{ $new := printf "
" $class }} {{ $htmlTable := replace $htmlTable $old $new }} {{ $htmlTable := replaceRE "align=\"([a-z]+)\"" "style=\"text-align: $1\"" $htmlTable}} {{ $htmlTable | safeHTML }}