Automattic / Automattic/harper

Ignore numbering pattern string in Typst functions

Open
#1,389 0 comments 1 reaction 0 assignees View on GitHub
bug harper-core linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

## Description

```typ
#set heading(numbering: "I-I.")
Some text
```

Gives "Did you mean to spell `I.` this way?"

This doesn't happen with no text or only one word. Since [numbering](https://typst.app/docs/reference/model/numbering/) can have a pattern string, it makes no sense to check it for errors and should be just skipped.

## Resources

## Screenshots

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided Typst heading and numbering pattern, then trace how the `numbering` setting is checked when text contains multiple words. The change is done when pattern strings such as `"I-I."` are skipped and no spelling warning is emitted, while the existing checks remain for ordinary text.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.