I’m attempting to wrap a div around all my tables that are generated.
In layouts/_default/_markup, I have the following in render-table.html:
<!-- Debug: render-table.html is being used -->
<div class="table-container">
{{ .Inner | safeHTML }}
</div>
In my config.toml I have goldmark set to unsafe so that I can do some things with images.
[markup.goldmark.renderer]
unsafe = true
But for some reason no matter what I try, this won’t generate the wrapping div. And I can tell it’s not processing because the debug isn’t showing after build either.
Thank you! I got the table working with shortcode option. Would be nice if there were a way to do render hooks for tables that way we could just use the normal table and no wrapper. But this works for now