Adding a class to simple markdown Table

I have search through a lot of the documenation here, and even on general markdown. I am trying to find a way to add a class to a simple table. I did find one article that is getting me close to an answer but I am trying to find the correct solution here that would be maintable for future proffing.

What I’m trying to do

I want to have mutiple differnt formats for a table on a single note, one formated to host instructions with images and being able to set colulm widths for that vs just a basic table with some information in it maybe even with differnt colors to distiguish it from other date, I have the information I need to create classes and add them to the front matter but I dont see a way to apply the class to a specific table in a page with mutiple tables.

| First Header  | Second Header |
| ------------- | ------------- |
| Content Cell  | Content Cell  |
| Content Cell  | Content Cell  |

In this artcle there are a few options to try one that has me puzzled is the refrence to using {#id .class}, this looks like the future proffining answer I would want to go with, but I dont see a way to use it with tables.

I found this that helped me get this sorted out

@HippyCraig, just to make sure you have all the options, this is another plugin you can use to add class to the table.

this one works even in LP (editing view). but just a note, instead of adding to the <table> tag, it adds to <div> tag housing the <table> i.e. <div class="myclass"><table></table></div>

1 Like

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