This commit is contained in:
Mohammad Tabrizi 2022-06-18 21:05:08 -04:00
parent 38f059ff01
commit 4613f5bc64

View File

@ -0,0 +1,6 @@
{{ $htmlTable := .Inner | markdownify }}
{{ $class := .Get 0 }}
{{ $old := "<table>" }}
{{ $new := printf "<table class=\"%s\">" $class }}
{{ $htmlTable := replace $htmlTable $old $new }}
{{ $htmlTable | safeHTML }}