Automattic / Automattic/harper
typst footnotes incorrectly breaking up sentences
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 102
Description
**What got flagged?**
Using harper-ls in typst, the following get's flagged as "This sentence does not start with a capital letter".
`For any number#footnote[Example] of clients, that is.`
**Why is this incorrect?**
Markup that does not render inline, or that doesn't semantically break up the sentence should not be parsed as an end of sentence.
Basically, the incorrect example above should be handled identically to:
`For any number of clients, that is.`
Interestingly, these seem to be fine:
- `For any number#footnote[Example] of clients.`
- `For any number@example of clients, that is.`
**Example of correct usage:**
[Your example here]
Contributor guide
Research direction
No source file or test is named in the issue. Start by reproducing the Typst example and compare it with the plain-text and inline-markup cases that already work; done means the footnote markup no longer causes a false sentence boundary or capitalization warning.
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
- 48/100