Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] can this support multimarkdown 6? #59

Open
simkimsia opened this issue Jan 31, 2021 · 8 comments
Open

[Question] can this support multimarkdown 6? #59

simkimsia opened this issue Jan 31, 2021 · 8 comments
Labels
on hold Hoping to fix, but not currently in progress

Comments

@simkimsia
Copy link

simkimsia commented Jan 31, 2021

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 ❤️

@tgrosinger
Copy link
Owner

@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 tgrosinger added the on hold Hoping to fix, but not currently in progress label Jan 31, 2021
@aidenlx
Copy link

aidenlx commented Apr 3, 2021

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

@tgrosinger
Copy link
Owner

@aidenlx how does Advanced Tables break the MMD tables?

@aidenlx
Copy link

aidenlx commented Apr 3, 2021

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
Copy link

aidenlx commented Apr 14, 2021

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

@tgrosinger
Copy link
Owner

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

@dummifiedme
Copy link

Any update on this one? 🤞

@tgrosinger
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on hold Hoping to fix, but not currently in progress
Projects
None yet
Development

No branches or pull requests

4 participants