rootdo/layouts/shortcodes/table.html

6 lines
215 B
HTML
Raw Permalink Normal View History

2024-10-04 12:44:59 +00:00
{{ $htmlTable := .Inner | markdownify }}
{{ $class := .Get 0 }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}