We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e41540 commit 66038e4Copy full SHA for 66038e4
layouts/shortcodes/bootstrap-table.html
@@ -1,8 +1,11 @@
1
{{ $htmlTable := .Inner | markdownify }}
2
{{ $class := .Get 0 }}
3
-{{ $old := "<table>" }}
4
-{{ $new := printf "<table class=\"%s %s\">" $class "table-v1" }}
5
-{{ $htmlTable := replace $htmlTable $old $new }}
+{{ $oldTable := "<table>" }}
+{{ $newTable := printf "<table class=\"%s %s\">" $class "table-v1" }}
+{{ $oldP := "<p>" }}
6
+{{ $newP := printf "<p class=\"%s\">" "table-v1"}}
7
+{{ $htmlTable := replace $htmlTable $oldTable $newTable }}
8
+{{ $htmlTable := replace $htmlTable $oldP $newP }}
9
{{ $htmlTable | safeHTML }}
10
11
<!-- Add default option for table of "narrow" if one is not provided -->
0 commit comments