NicoNekoru / obsidan-advanced-table-xt

Plugin that adds features to tables in obsidian including merging, vertical headers, and custom css
Apache License 2.0
99 stars 5 forks source link

{background-color:"blue" } blue background not displayed properly #18

Closed zhoulonghao520 closed 1 year ago

zhoulonghao520 commented 1 year ago
| Custom  | css                             | cells |
| ------- | ------------------------------- | ----- |
| foo ~ {color:"red" }  | foo ~ {background-color:"blue" } | <     |
|         |                                 |       |

image

{background-color:"blue" }

blue background not displayed properly

NicoNekoru commented 1 year ago

Can you try backgroundColor instead

zhoulonghao520 commented 1 year ago

IsOkOkay, all the “-” in CSS need to be removed?
Do the following characters need to be capitalized?

NicoNekoru commented 1 year ago

Yes, css styles which are accessible in JS end up replacing a-b with aB. I can try to add both as valid, but for now the plugin just uses camelCase for css styles.