mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[GH-ISSUE #799] [Bug] Markdown CJK wrap duplicates glyph at specific widths #988
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#988
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stephanoskomnenos on GitHub (Mar 10, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/799
Summary
Rendering Markdown with CJK content can duplicate a fullwidth glyph at specific terminal widths where the line wraps.
Repro
Repo: https://github.com/stephanoskomnenos/opentui-md-wrap-demo
Commands:
scripts/capture.sh --tmux-columns 38 --out-png ./tmp/demo-38.pngscripts/capture.sh --tmux-columns 39 --out-png ./tmp/demo-39.pngscripts/capture.sh --tmux-columns 40 --out-png ./tmp/demo-40.pngExpected
No duplicated glyph on wrap.
Actual
At width 39, the wrap boundary duplicates a CJK glyph ("确" appears both at end of line and again on next line).
Screenshots (38/39/40)
ANSI/HTML/PNG are included in the repo under
tmp/.Environment (devcontainer)
<markdown>component