I want to thank zwbetz for the solution I found on his website - https://zwbetz.com/style-a-markdown-table-with-bootstrap-classes-in-hugo/ - how to load a table from .md file! Works fine!
Zachary, it would be so nice if you can explain your shortcode. I think you were trying to create a shortcode for any table on the site, and to assign individual styling to it with $class - did you?
"<table class=\"%s\">" $class }}
It is not very clear how you were going to use it.
Thank you!
You also can do it directly in the .md file by adding the style information just before the table and adding mmark in the front matter
---
markup: "mmark"
---
For example
{.table .pure-table .table-striped .table-responsive}
Type | Types de cookies | A
-----|-------------------------|----
|Cookies strictement nécessaires | A
|Cookies fonctionnels | A
|Cookies de performance | A
|Cookies de marketing, tiers, à base de consentement | A
and (from memory) using markdownify in your template (not sure if this part is really needed)
@vistad my solution was specific to how Bootstrap styles their tables, so if you’re using a different CSS library then the shortcode may have to be adapted.