-
Notifications
You must be signed in to change notification settings - Fork 52
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
Table marks are not aligning properly #75
Comments
using commit 9e5275f |
nice, confirmed! |
might need to re-render the box-drawing lines upon returning to normal mode Screencast_20240806_003430.webm |
That's actually the intended behavior since the goal was to preserve the original width without causing cursor jumps. Guess I should tweak this behavior a bit. |
If you have |
(neovim/neovim#13474) it fits with |
Not much I can do about long lines other than, "Stop trying shove everything inside tables" since trying to do that will be VERY difficult(as people will end up using other syntaxes inside table cells). But then again even GitHub doesn't do that for long tables(at least not on mobile) so this shouldn't be a problem most of the time. |
Probably because neovim doesn't take concealed text into account when checking if a line should wrap or not. So, after adding the borders the line's width becomes twice of its original width which causes neovim to wrap it. |
I'm still having issues with table formatting when there is concealed text in the table. Is there a way around this? I believe my markdown syntax is correct... Is there a setting I'm missing? I should be using the latest
|
There's 2 issues here,
|
I think GitHub might have auto-formatted your second suggestion. Is there a |
Yes |
If I eliminate the manually-added spaces and escape the
|
I think I found the issue. There seems to be a This will probably take a while to fix(as it seems to break other stuff one way or another). |
Ok, thanks for taking a look. Should I open a new issue? |
Turns out, I'm stupid 😑. |
Hey, hey, hey! You're a frickin genius, this is a rad plugin that you've dedicated a lot of work to it. Thanks very much for your help. Glad that was easy, though ;) |
Glad that was easy, though ;)
|
I'll keep tabs on the dev branch, thanks! |
Hi @OXY2DEV Your plugin rocks but I still get issues with long tables, whose borders are all messed up when the cursor column is greater than the terminal width. When that happens, If I go further left (with In such scenario, when the cursor column is greater than the terminal width, I think one solution would be to simply disable the hightlight completely and show raw markdown text. |
@uwla Tables no longer render when the start column of the table isn't visible. |
Describe the bug
The table rendering is off when it contains marked-up character(s)
Are you using a distro?
No
To Reproduce
Steps to reproduce the behavior:
markview.nvim
.markdown
document.Expected behavior
The table should have consistent boundaries like here
https://jbt.github.io/markdown-editor/#pdA9C8IwEAbgvb/iiosOEdRVnFxcOikIpdCYnhjIR0mu2EJ/vEe1YF0UfIeEy4XnQmaQ4R32XjUWHSVJDyvoYcj6uY3lD9l86ffMC/bEWz7KPzLwjr1ya1BWGHZlCFzmoUDBS+OAbghGRgLCYLWTBpS3VroK5kdupSnEzpFsQUc4ZYeziDUqfdVq8Xr9lGeI+VggA+QH3aEMyOc5FeOIzjeB3UhoQRldX7wMfB9bWk4/5wE=
Or with MeanderingProgrammer/markdown.nvim
Actual behavior
The table is misaligned
Neovim version
0.10.0
The text was updated successfully, but these errors were encountered: