Skip to content

Commit

Permalink
2025-02-05 02:49:14
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiKimera committed Feb 5, 2025
1 parent 93b82ad commit 5d7e0f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/shortcodes/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

*/ -}}

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

0 comments on commit 5d7e0f8

Please sign in to comment.