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

changing current row changes alignment #11

Open
nkh opened this issue Oct 30, 2024 · 1 comment
Open

changing current row changes alignment #11

nkh opened this issue Oct 30, 2024 · 1 comment

Comments

@nkh
Copy link

nkh commented Oct 30, 2024

HI, nice job.

when editing an existing table, changing row changes indentation/alignment, is there a reason for that? I find it a bit disturbing. I can understand that adding/changing a cell content to something would change alignment but in this case nothing is changed.

@szktkfm
Copy link
Owner

szktkfm commented Nov 1, 2024

Thank you for using the tool! Just to confirm, are you referring to examples like the following?

| abc | def     |
| --- | ------- |
| bar |     baz |
| bar | baz     |

When using mdtt, even if the first line isn’t changed, it ends up looking like this:

| abc | def |
| --- | --- |
| bar | baz |
| bar | baz |

The reason this happens is that mdtt reformats the entire table for consistency whenever any row is edited, regardless of whether other rows are modified. Additionally, due to GitHub Flavored Markdown (GFM) specifications, spaces within table cells are trimmed, causing the formatting to disregard extra spaces and align cells automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants