Automattic / Automattic/harper
Ignore spellcheking in a `typst` content block
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 102
Description
## Description
I need to sometimes make quotes that are written in different languages than english, this obviously messes with the harper spellchecker. I would like to be able to disable harper for that content block.
```
#quote(block: true)[
Something written in another language.
]
```
## Component
- The `harper-ls` language server
## Use Cases
It will be useful when writing text that shouldn't be spellchecked.
## Implementation Ideas
If, for example, harper could look for a comment at the start of the content block for one of the already established "harper: ignore" strings but applying it to the entire contentent block it contains.
```
Spellchecked
[
// haper: ignore-block
Not spellchecked.
]
Spellchecked
```
## Existing Solutions
Currently I just disable the entire language server. But this disables all features.
## Screenshots/Examples

Contributor guide
Research direction
Start in the harper-ls component by comparing the existing "harper: ignore" strings with the Typst content-block example. Done means a marked block is excluded from spellchecking while text outside it continues to receive language-server features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100