From 6268423566c1d0f7c54242341e355e457596416d Mon Sep 17 00:00:00 2001 From: Hannah Hunter Date: Tue, 12 Sep 2023 09:30:51 -0400 Subject: [PATCH] add html for rendering markdown tables Signed-off-by: Hannah Hunter --- daprdocs/layouts/shortcodes/table.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 daprdocs/layouts/shortcodes/table.html diff --git a/daprdocs/layouts/shortcodes/table.html b/daprdocs/layouts/shortcodes/table.html new file mode 100644 index 000000000..7ba0498ba --- /dev/null +++ b/daprdocs/layouts/shortcodes/table.html @@ -0,0 +1,6 @@ +{{ $htmlTable := .Inner | markdownify }} +{{ $class := .Get 0 | default "" }} +{{ $old := "" }} +{{ $new := printf "
" $class }} +{{ $htmlTable := replace $htmlTable $old $new }} +{{ $htmlTable | safeHTML }} \ No newline at end of file