advanced-tables-obsidian icon indicating copy to clipboard operation
advanced-tables-obsidian copied to clipboard

[Question] can this support multimarkdown 6?

Open simkimsia opened this issue 3 years ago • 8 comments

VIP member for obsidian md and also user of advanced tables plugin

Question: I'm wondering if this plugin supports multimarkdown 6.

Reason is because i was hoping to have merged cells in the table.

See https://fletcher.github.io/MultiMarkdown-6/syntax/tables.html for example of merged cells

If this is possible, but not yet live, I'm willing to fund its development at USD 10 a month for 2 years.

🙏 Thank you for making this software much love ❤️

simkimsia avatar Jan 31 '21 03:01 simkimsia

@simkimsia, thank you very much for the kind words and support.

Unfortunately advanced-tables does not support multimarkdown. There are a couple of limitations which are equally important:

  • advanced-tables does not have any effect on how tables are rendered in Obsidian. It only operates in edit mode. Currently the API does not expose enough information for a plugin to add support for those tables. I believe the information necessary is planned, however there is no estimate on when that will come. This problem could also be worked around if Obsidian added support for MMD natively. Perhaps something to post in the feature request forum?
  • The second issue is that the library powering advanced-tables (md-advanced-tables) does not yet support MMD tables. This problem is something I am able to do something about, however I probably will not put time into that until the first issue is resolved.

So shorter answer: I hope to do that someday! But waiting on support from Obsidian first.

tgrosinger avatar Jan 31 '21 16:01 tgrosinger

Good News! I've written a plugin that allows MultiMarkdown table syntax to work in Obsidian, maybe you can consider first allow the tx-tagged code block to be ignored so that Advanced Table won't break the MMD tables before MMD is fully supported?

Link to my plugin: https://github.com/alx-plugins/table-extended

aidenlx avatar Apr 03 '21 16:04 aidenlx

@AidenLx how does Advanced Tables break the MMD tables?

tgrosinger avatar Apr 03 '21 16:04 tgrosinger

The auto-formatting also applies to the table within the code block, so, for example, when hitting enter, the gaps between divide mark | is filled with blanks, and the header, if not present, will be added. These would break colspan and intentionally omitted table header

It could be better illustate in this demo:

| ------------ | :-----------: | -----------: | 
|Content       |          *Long Cell*        || 

turn into:

| ------------ | :-----------:        | -----------: |
| ------------ | -------------------- | ------------ |
| Content      | *Long Cell*          |              |

The auto-formatting would also affect multiple table headers, illustrated here:

|             |          Grouping           || 
|First Header  | Second Header | Third Header | 
| ------------ | :-----------: | -----------: | 
|Content       |          *Long Cell*        || 

turn into

|              | Grouping             |              |
| ------------ | -------------------- | ------------ |
| First Header | Second Header        | Third Header |
| ------------ | :-----------:        | -----------: |
| Content      | *Long Cell*          |              |

aidenlx avatar Apr 03 '21 16:04 aidenlx

It's been a while since then, any update on the possible fix?

aidenlx avatar Apr 14 '21 16:04 aidenlx

No update. I have not had a chance to put much time into Obsidian plugins recently.

tgrosinger avatar Apr 14 '21 16:04 tgrosinger

Any update on this one? :crossed_fingers:

dummifiedme avatar Dec 03 '21 11:12 dummifiedme

I'm going to split this into two tickets. Supporting MMD is a large task that I don't anticipate adding in the near future, however ignoring those tables is smaller and could be done sooner.

tgrosinger avatar Dec 03 '21 15:12 tgrosinger