new table shortcode

This commit is contained in:
Vortex 2021-06-12 03:18:18 +05:30
parent a1691442d2
commit 5f0a06b1a2

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 }}