rootdo/layouts/shortcodes/table.html
2024-10-04 12:44:59 +00:00

6 lines
No EOL
215 B
HTML

{{ $htmlTable := .Inner | markdownify }}
{{ $class := .Get 0 }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}