Blog/themes/papercut/layouts/shortcodes/table.html

7 lines
216 B
HTML
Raw Permalink Normal View History

2023-06-25 21:11:33 +03:00
{{ $htmlTable := .Inner | markdownify }}
{{ $class := .Get 0 }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}