Skip to content

Render operators as typographic glyphs in the editor overlay - #8

Merged
ccakes merged 1 commit into
mainfrom
claude/editor-operator-ligatures-3w3mki
Jul 7, 2026
Merged

Render operators as typographic glyphs in the editor overlay#8
ccakes merged 1 commit into
mainfrom
claude/editor-operator-ligatures-3w3mki

Conversation

@ccakes

@ccakes ccakes commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Display-only substitution in the syntax-highlight overlay: the textarea's
raw ASCII is unchanged, so the parser still evaluates correctly while the
rendered text shows proper glyphs.

  • * -> ×, spaced / -> ÷ (single-cell 1:1 swaps)
  • ligatures -> → →, => → ⇒, != → ≠, <= → ≤, >= → ≥, each in a
    2ch-wide span so the caret and soft-wrapping stay aligned with the source
  • markdown * (bold/italic/list) is preserved; only math * becomes ×
  • division only fires when whitespace-surrounded, leaving dates and rates
    (06/28, km/h) literal
  • native font ligatures disabled on both layers for deterministic rendering

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_0167LqyCYk7YA6SXLceXu52d

Display-only substitution in the syntax-highlight overlay: the textarea's
raw ASCII is unchanged, so the parser still evaluates correctly while the
rendered text shows proper glyphs.

- `*` -> ×, spaced `/` -> ÷ (single-cell 1:1 swaps)
- ligatures `->` → →, `=>` → ⇒, `!=` → ≠, `<=` → ≤, `>=` → ≥, each in a
  2ch-wide span so the caret and soft-wrapping stay aligned with the source
- markdown `*` (bold/italic/list) is preserved; only math `*` becomes ×
- division only fires when whitespace-surrounded, leaving dates and rates
  (06/28, km/h) literal
- native font ligatures disabled on both layers for deterministic rendering

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0167LqyCYk7YA6SXLceXu52d
@ccakes
ccakes merged commit ca372d5 into main Jul 7, 2026
5 checks passed
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