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
When bullet.right_pad >= 1 and heading.border == true, if an ordered/unordered list appears directly before a heading, the first line of the heading border is offset to the right by the right_pad amount.
Here is an example:
Note the gap at the beginning of lines 13 and 21.
Markdown from screenshot
# Hello
Hey!
## Stuff
Stuff is cool:
1. Plants
2. Animals
3. Rocks
4. Etc.
### Plants
Plants are cool:
- Trees
- Flowers
- Grass
### Animals
Animals are cool:
- Dogs
- Cows
- Frogs
Expected behavior
The heading border should start at the beginning of the line, regardless of the bullet.right_pad setting. It should look like this:
Healthcheck output
render-markdown: require("render-markdown.health").check()
render-markdown.nvim [version] ~
- OK plugin 7.8.6
- 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
- WARNING latex: parser not installed
- ADVICE:
- Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }
render-markdown.nvim [icons] ~
- OK using: nvim-web-devicons
render-markdown.nvim [executables] ~
- WARNING latex2text: not installed
- ADVICE:
- Disable LaTeX support to avoid this warning by setting { latex = { enabled = false } }
render-markdown.nvim [conflicts] ~
- OK headlines: not installed
- OK obsidian: installed but should not conflict
I have updated this plugin to the latest version using my plugin manager
I have provided the text contained in all screenshots as raw text in this issue. This means if there is a screenshot below it is the copy pasted contents of the file in the screenshot. I understand that my issue will be closed if I have not.
Additional information
No response
The text was updated successfully, but these errors were encountered:
## Details
Issue: #297
Tree sitter parser has the last list item extending to the next section.
Since heading borders are added as overlay lines when space is available
they will end up getting the padding that was added there for the list
item. Fix is to have a special case for the last line in a list when it
is empty, not the best but seems to work well enough.
Neovim version (nvim -v)
v0.11.0-dev-1545+ga4f575abd8
Neovim distribution
N/a
Operating system
Arch Linux
Terminal emulator / GUI
Ghostty
Describe the bug
When
bullet.right_pad >= 1
andheading.border == true
, if an ordered/unordered list appears directly before a heading, the first line of the heading border is offset to the right by theright_pad
amount.Here is an example:
Note the gap at the beginning of lines 13 and 21.
Markdown from screenshot
Expected behavior
The heading border should start at the beginning of the line, regardless of the
bullet.right_pad
setting. It should look like this:Healthcheck output
Plugin configuration
Plugin error log
Confirmations
Additional information
No response
The text was updated successfully, but these errors were encountered: