shortcodes/table.html
{{ $htmlTable := .Inner | markdownify }}
<!-- change table -->
{{ $htmlTable }}
content/test.md
{{< table "table table-bordered table-hover my-5">}}
| head1 | head2<sup>1</sup> |
|--------|-------------------|
| bought | a |
{{</ table >}}
<sup>1</sup> note that this is a
HTML
<th>default<!-- raw HTML omitted -->1<!-- raw HTML omitted --></th>
<sup></sup>
doesn’t work. I suspect that markdownify pipe is omitting sup tags to raw html. It could be anything else.
I have also made a shortcode
xup.html
<sup>{{.Get 0}}</sup>
content/test.md
{{< table "table table-bordered table-hover my-5">}}
| head1 | head2{{< xup "1">}} |
|--------|-------------------|
| bought | a |
{{</ table >}}
{{< xup "1">}} note that this is a
This only works outside of any shortcode.
any alternative? sight miss?