Currently, we have render-hooks for images, anchor tags, and headings. Are there any plans for implementing render-hooks for tables as well?
I use Bootstrap and tables in Bootstrap need to have classes like “table”, “table-*” for styling them. For now, I made a shortcode as a hack to apply these classes to .Inner. But I feel it would be really great if we had render-hooks for tables as well.
I “fixed” this requirement by creating a class “prose” for my content. That prose class then is receiving all the classes required in the SCSS, something like this:
I think a render hook would be great, but will be hard to implement, because it requires more than just one single loop around the code (as in <a>something</a>) for headers/footers, rows and definitions for instance for column span, width etc…
The reason why we haven’t done this is not about how hard it would be to implement. The render hooks comes with a significant performance cost meaning the hooks needs to add significant value (which is the case for links, images and headings).