blog/layouts/shortcodes/table.html

6 lines
215 B
HTML
Raw Normal View History

2022-02-26 15:25:50 +00:00
{{ $htmlTable := .Inner | markdownify }}
{{ $class := .Get 0 }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}