Skip to content

bug: Visual effects cleared when markdown files is splitted and scrolled #184

@Bekaboo

Description

@Bekaboo

Neovim version (nvim -v)

0.10.0

Neovim distribution

N/A

Operating system

Linux

Terminal emulator / GUI

Alacritty

Describe the bug

When a markdown file is splitted into two windows and one of the window scrolls, the visual effects can be cleared in another window.

Expected behavior

Both windows render normally.

Healthcheck output

render-markdown: require("render-markdown.health").check()

render-markdown.nvim [version] ~
- OK plugin 7.1.11
- OK neovim >= 0.10

render-markdown.nvim [configuration] ~
- ERROR render-markdown.signs: is not a valid key

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 [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: not installed

Plugin configuration

require('render-markdown').setup()

Plugin error log

N/A

Confirmations

  • I have updated this plugin to the latest version using my plugin manager
  • I have provided text for all screenshots & understand that my issue will be closed if I have not

Additional information

I believe this is because render-markdown clears "off-screen" extmarks but it only considers visible range of the file in the current window instead of all windows that contain the markdown file.

A video that demonstrate the bug (observe the split on the left):

2024-09-24.23-12-13.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions