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

🐞 Bug: Constantly getting error when writing html-tag followed by bold/italic text on a numbered list item #179

Open
2 tasks done
kusnezoff-alexander opened this issue Oct 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@kusnezoff-alexander
Copy link

Before reporting:

  • Ensure that the issue is reproducable on the main branch.
  • Ensure that there isn't an issue on this(either open or closed).

Problem:

Random error occurs constantly when writing a specific line (see Steps to reproduce the issue) with the following error message:

Error executing vim.schedule lua callback: ...al/share/nvim/lazy/markview.nvim/lua/
markview/parser.lua:141: invalid pattern capture                                   
stack traceback:                                                                   
        [C]: in function 'gsub'                                                    
        ...al/share/nvim/lazy/markview.nvim/lua/markview/parser.lua:141: in functio
n 'filter_lines' 

It seems like this error only occurs when writinga html-tag followed by bold/italic text on the line of a numbered list item.

Steps to reproduce the issue:

Create a markdown file test.md with the following content:
2) <u>text</u> *italic*
and try to do anything (move cursor/...).

Expected behavior:

No error should occur.

Neovim version:

v0.10.1

@kusnezoff-alexander kusnezoff-alexander added the bug Something isn't working label Oct 12, 2024
@kusnezoff-alexander
Copy link
Author

The problem seems to be the with the Regex on this line: (>%s-([+%-*])) which also matches html-tags followed by a star * as Marker items, although they are not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants