efemkay / obsidian-modular-css-layout

CSS Layout hack for Obsidian.md
https://efemkay.github.io/obsidian-modular-css-layout/
GNU General Public License v3.0
1.01k stars 74 forks source link

FR: A way to make working with tables easier #25

Open spiritualgeek opened 1 year ago

spiritualgeek commented 1 year ago

I'm frequently using your snippets. Thanks for these.

I wonder if there is an easier way to work with tables apart from having to use the callouts?

Such as:

> [!multi-column]
>> [!blank-container]
>> | Item    | Desc                 |
>> | ------- | -------------------- |
>> | An Item | An item desccription |
>
>> [!blank-container]
>> | Item    | Desc                 |
>> | ------- | -------------------- |
>> | An Item | An item desccription |
>
>> [!blank-container]
>> | Item    | Desc                 |
>> | ------- | -------------------- |
>> | An Item | An item desccription |

It would not even be monospaced such as the snippet I pasted in, but that is not really the biggest issue

It comes to when you would like to edit the table using plugins such as Advanced Tables or Markdown Table Editor

It, basically, means that you have to remove the >> from the entire table and then place back once done

Thanks

efemkay commented 1 year ago

there is limitation (at the moment, afaik) in using css to target a specific blocks to become the "children" that will be turn into multi column. which is why my snippets either rely on callout to provide the wrap, or list (either ordered or unordered). for ur matter (on ease of editing tables), the best recourse i can think of is using ckrobinson's multi-column markdown plugin.

on that note, i'll keep this FR open in case i find a workable css solution

spiritualgeek commented 1 year ago

Thanks - I see this plugin doesn't require you to place everything inside a code block like another one I used before. This might be workable, but it would be great if you had a CSS solution at some stage.

I appreciate your feedback :)

spiritualgeek commented 1 year ago

Update: Tried this plugin, but it is temperamental and buggy. Force reloads required when changing something and disappearing tables or random duplicate headings. Things don't always render in canvas as they do on the page etc