Skip to content

fix(editor): keep IME input inside table headers - #709

Merged
murongg merged 1 commit into
v2from
fix/table-header-ime
Sep 4, 2026
Merged

fix(editor): keep IME input inside table headers#709
murongg merged 1 commit into
v2from
fix/table-header-ime

Conversation

@murongg

@murongg murongg commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • keep WebKit IME selections anchored inside visual table header cells
  • add a serialization-safe caret host for composition in empty header cells
  • cover escaped selections and first input into an empty header with regression tests

Why

Chinese IME input in an empty visual table header could be inserted as a stray node under the table row. This distorted the table into an apparent extra column and left the Markdown source unchanged.

Validation

  • pnpm --filter @markra/editor test — 39 test files and 525 tests passed
  • pnpm --filter @markra/editor typecheck:test passed
  • pnpm --filter @markra/editor build passed
  • local UI check: entered 苏打水 in an empty header, confirmed the visual table stayed at two columns, then confirmed source mode showed | 1 | 苏打水 |

Risk

Low. The change is limited to IME composition handling in visual table cells, and the zero-width caret marker is removed during Markdown serialization.

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
markra-web Ready Ready Preview Sep 4, 2026 1:26pm UTC

@murongg
murongg merged commit 11610d2 into v2 Sep 4, 2026
23 checks passed
@murongg
murongg deleted the fix/table-header-ime branch September 4, 2026 13:45
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.

1 participant