Automattic / Automattic/harper

Bug: ignore comments are ignored when above or after a line

Open
#2,436 7 comments 2 reactions 0 assignees View on GitHub
bug linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

**Describe the bug**

ignore comments are ignored when above or after a line:

Image

The only place they are not ignored is at the *start* of a line. However, those apparently result in making some markdown syntax invalid, as you can see with the bold not being applied in the above example.

See also the markdown-to-html conversion result of pandoc:

Image

**To Reproduce**
```md

**typoo**

**typoo**

**typoo**
```

**Expected behavior**
ignore comments should work

**Platform**
LSP in nvim

**Additional context**
I tried all the comments mentioned here, but none of them seem to work: https://writewithharper.com/docs/integrations/language-server#Ignore-Comments

Contributor guide

Open the contributing guide

Research direction

Start with the LSP in nvim and reproduce the three Markdown examples from the issue, checking how each ignore comment position is interpreted. Done means ignore comments suppress the reported typo above, after, and before inline text without disabling surrounding Markdown formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim, rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.