forked from functor.systems/website
9 lines
290 B
HTML
9 lines
290 B
HTML
{{ $htmlTable := .Inner | markdownify }}
|
|
{{ $old := "<table>" }}
|
|
{{ $new := "" }}
|
|
{{ $title := .Get "title" }}
|
|
{{ if $title }}
|
|
{{ $new = printf "<table><caption>%s</caption>" ($title | markdownify) }}
|
|
{{ end }}
|
|
{{ $htmlTable := replace $htmlTable $old $new }}
|
|
{{ $htmlTable | safeHTML }}
|