Skip to content

Add an optional offline English proofreader for Markdown and Typst - #1

Merged
Reodus merged 7 commits into
Reodus:mainfrom
BitInfiltrator:feature/english-proofreader
Dec 3, 2026
Merged

Reodus merged 7 commits into
Reodus:mainfrom
BitInfiltrator:feature/english-proofreader

Conversation

@BitInfiltrator

Copy link
Copy Markdown
Contributor

Adds an opt-in vault plugin that marks English spelling and grammar issues with a yellow underline. Hovering explains the issue and offers corrections that can be applied in the editor and undone normally.

The check runs locally in a worker. A standalone Python build verifies the pinned Harper package and produces a plugin folder without adding dependencies to the main application.

Tested on Windows with NoteZ 1.2.1, including the plugin build, spelling and article diagnostics, hover suggestions, click-to-apply, and undo.

@Reodus

Reodus commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Thanks for adding the offline proofreader. I built the plugin and tested it against the current main on Linux. Suggestions, applying a correction, and undo worked in both Markdown and Typst. Disabling the plugin also cleared the underlines.

I found two issues I’d like addressed before merging.

  1. Corrections shift after an emoji. With 😀 on a line above She ate a apple, the plugin underlines the space after a instead of a itself. Harper 3.2.0 already returns UTF‑16 offsets, so the extra conversion in check-worker.js shifts the range. Please use span.start and span.end directly and add a regression case with an emoji before the error.
  2. Corrections can change a wiki link’s destination. Applying an inside [[She ate a apple]] changes the link to [[She ate an apple]]. That can break the link to an existing note. Please exclude wiki link targets from automatic corrections.
    One smaller UI issue is that read-only mode shows correction buttons even though clicking them has no effect. Please keep the explanation visible and hide the correction buttons in that mode.

@Reodus
Reodus merged commit 2aad665 into Reodus:main Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants