Automattic / Automattic/harper

Ignore spellcheking in a `typst` content block

Open
#1,198 8 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue spelling typst
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

![Image](https://github.com/user-attachments/assets/c03bd453-2163-4364-b0bc-cc38e3984cdf)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.