From 5f0a06b1a26fc7236743b2f5d8cf1e754c63e53d Mon Sep 17 00:00:00 2001 From: Vortex Date: Sat, 12 Jun 2021 03:18:18 +0530 Subject: [PATCH] new table shortcode --- layouts/shortcodes/table.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/shortcodes/table.html diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html new file mode 100644 index 0000000..c1991d9 --- /dev/null +++ b/layouts/shortcodes/table.html @@ -0,0 +1,6 @@ +{{ $htmlTable := .Inner | markdownify }} +{{ $class := .Get 0 }} +{{ $old := "" }} +{{ $new := printf "
" $class }} +{{ $htmlTable := replace $htmlTable $old $new }} +{{ $htmlTable | safeHTML }} \ No newline at end of file