shared-bulma-theme/layouts/shortcodes/table.html

6 lines
215 B
HTML
Raw Normal View History

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