Hi,
My Grav template has special CSS classes to show tables in different styles.
In my page, I have many tables, look like this:
#### Table 1
Col 1 | Col 2 | Col 3
Sample | Sample | Sample
Sample | Sample | Sample
#### Table 2
Col 1 | Col 2 | Col 3
Sample | Sample | Sample
Sample | Sample | Sample
#### Table 3
Col 1 | Col 2 | Col 3
Sample | Sample | Sample
Sample | Sample | Sample
-```
In order to show the tables in a specific style, I need to put it inside a <div>, the HTML should look like this:
<div class="table-style-1">
<table>
</table>
</div>
<div class="table-style-2">
<table>
</table>
</div>
In my page, I can't add HTML, this is not working:
Table 1
<div class="table-style-1">
Col 1 | Col 2 | Col 3
Sample | Sample | Sample
Sample | Sample | Sample
</div>
My only solution for now is leaving my page empty. I hard-code the tables's HTML code in my html.twig file, but this gives end-users no ability to modify the tables's content because they do this via admin plugin, they only can modify pages, not theme.
Do you have any solution for my issue? Thank you!