You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cell content is rendered with the last letter right-aligned, while the rest is left aligned. This happens when the content is directly enclosed by || with no spaces between the end of the content and |
|aaaaaa|bb|cccccc||-|-|-||yes|nooooooooo|no |
If the table is indented (less than 4 spaces, otherwise it's treated as code), the rendered borders are not indented
|aa|bb|cc||-|-|-||1|2|3|
Expected behavior
The whole cell content is left aligned.
The whole table will indent as the code does.
Healthcheck output
render-markdown: require("render-markdown.health").check()
render-markdown.nvim [version] ~
- OK plugin 6.1.3
- OK neovim >= 0.10
render-markdown.nvim [configuration] ~
- OK valid
render-markdown.nvim [nvim-treesitter] ~
- OK installed
- OK markdown: parser installed
- OK markdown: highlight enabled
- OK markdown_inline: parser installed
- OK markdown_inline: highlight enabled
render-markdown.nvim [executables] ~
- OK none to check
render-markdown.nvim [conflicts] ~
- OK headlines: not installed
- WARNING obsidian: installed
- ADVICE:
- Ensure UI is disabled by setting ui = { enable = false } in obsidian.nvim config
- Acknowledge conflicts to avoid this warning by setting { acknowledge_conflicts = true }
## Details
Issue: #142
This resolves 2 separate issues.
The first is for tables that are indented some amount space over. In
such cases the top & bottom full sections as well as the delimitter
would be misaligned since they did not take into account any leading
spaces and generate full lines rather than changing individual parts
which is the case for rows. To fix this add logic to get the amount of
leading space and shift these components over accordingly.
The second is for tables where the contents of a cell went all the way
to the right pipe with no spaces. This would cause the padding to be
inserted in the middle of the content rather than at the end. To fix
this adjust the column associated with padding to no longer subtract one
off. Use a priority value of 0 for the padding marks so the pipe marks
pickup the padding as well, otherwise they would end up ignoring it.
Neovim version (nvim -v)
0.10.1
Operating system
Arch Linux
Terminal emulator / GUI
foot
Describe the bug
||
with no spaces between the end of the content and|
Expected behavior
Healthcheck output
Plugin configuration
lazy.nvim config:
Plugin error log
Confirmations
Additional information
I have just checkout the latest commit 0a8b941 for the tests above.
The text was updated successfully, but these errors were encountered: