NicoNekoru / obsidan-advanced-table-xt

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

May I ask if it is possible to separate styles from table syntax. #27

Closed zhoulonghao520 closed 11 months ago

zhoulonghao520 commented 11 months ago

May I ask if it is possible to separate styles from table syntax.


| I                 | -   | have | meta                  | data        | too! |
| ----------------- | --- | ---- | --------------------- | ----------- | ---- |
| group 1           | -   | foo  | bar ~ .class1 .class2 | baz         | test |
| group 2 ~ .class1 | -   | 1    | ^                     | 3 ~ .class2 | 4    |

replace with

{
    classes: { 
        class1: { 
            "color": "cyan",
        },
        class2: {
            backgroundColor: "#555",
        }
    },
}
---
I - have meta data too!
group 1 - foo bar ~ .class1 .class2 baz test
group 2 ~ .class1 - 1 ^ 3 ~ .class2 4

To make (advanced-tables-obsidian) plugin effective

NicoNekoru commented 11 months ago

Sorry can you be more clear about what you want the syntax to change to?