Footnote sup tag not working inside markdownify. help

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?

By default, Goldmark does not render raw HTMLs and potentially dangerous links. If you have lots of inline HTML and/or JavaScript, you may need to turn this on.

You need to set unsafe: true.
documentation Goldmark Configuration

Thanks, I write like this(below), it worked.

[markup]
    [markup.goldmark]
        [markup.goldmark.renderer]
            unsafe = true

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.