Closed HippyCraig closed 7 months ago
Sorry, for now, the code block syntax is the only option for full-table styling.
The problem with implementing styling support in native tables like the plugin can with the custom code blocks is that I am not exactly sure how the native markdown syntax would look like. Even for column by column styling, with custom code blocks this syntax is possible:
| I | ---- | have | meta | data | too! |
| ----------- | ---- | -: ~ .c2 | ---------- | ----- | ---- |
| group 1 | - ~.c1 | foo | bar | baz | test |
| group 2 | ------ | 1 | ^ | 3 | 4 |
However, in native tables this syntax would not render properly since Obsidian would not recognize -: ~ .c2
as valid table syntax.
This is the struggle with adding more styling features to native tables: I am not sure how to design the syntax. If you have any suggestions on how full table styling could be implemented without the code blocks, I would love to hear it!
Currently, I am working on adding any support for native tables with the "new" table editor since I have been slacking ever since Obsidian's table editor got released which broke the plugin's native table support, but if you have any suggestions I might work on native table styling in the future.
cool thanks for getting back to me
I already have my own css file with the formating I want for a table. Is there a way to add just the class to the whole table? It seems like the code block is overkill for what I am trying to do. I dont want to have the CSS in two places like that.
is it as simple as adding "~ .class1" at the begining of the table with my custom class? I have another plugin that provides a way to add style sheets to teh whole table but I would like to just use yours to do everything if thats possible
Thanks Craig