diff options
Diffstat (limited to 'layouts/shortcodes/table.html')
-rw-r--r-- | layouts/shortcodes/table.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html new file mode 100644 index 0000000..c7ebf68 --- /dev/null +++ b/layouts/shortcodes/table.html @@ -0,0 +1,2 @@ +{{ $caption := printf "<table class=\"%s\"><caption class=\"text-center\">%s</caption>" ( .Get "class" ) ( .Get "caption" ) }} +{{ .Inner | markdownify | replaceRE "<table>" $caption | safeHTML }} |