{{ $htmlTable := .Inner | markdownify }} {{ $old := "" }} {{ $new := "" }} {{ $title := .Get "title" | markdownify }} {{ $extraClass := .Get "class" }} {{ $id := "" }} {{ with .Get "id" }} {{ $id = . }} {{ else }} {{ $id = delimit (shuffle (seq 1 9)) "" }} {{ $id = printf "t-%s" $id}} {{ end }} {{ if $title }} {{ $new = printf "
" $extraClass $id $id $title | markdownify }} {{ else }} {{ $new = printf "
Tableau. %s
" $extraClass $id}} {{ end }} {{ $htmlTable := replace $htmlTable $old $new }} {{ $htmlTable := replaceRE "align=\"([a-z]+)\"" "style=\"text-align: $1\"" $htmlTable }}
{{ $htmlTable | safeHTML }}