GeezerVison is showing github.com — fix(web): Arabic and Hebrew lines in markdown code fences read right to left by shivamhwp · Pull Request #42064 · pingdotgg/t3code
Conversation
shivamhwp
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Refs #42017
Markdown code fences in chat (md, markdown, mdx) were laid out left to right, so Arabic and Hebrew lines put their punctuation on the wrong side and coding-font ligatures overprinted right-to-left letters. The fix is CSS only: in chat, the block that holds a markdown fence's lines gets unicode-bidi: plaintext (so each line takes the direction of its own words) and font-variant-ligatures: none. text, txt, plain, plaintext and unlabelled fences stay left to right, because they often hold file trees and tables whose lines must line up. Code fences, the header and the wrapper's dir="ltr" are unchanged.
The composer is not changed. Its code is one text block, and text-align: start can't align each line on its own in that layout, so composer prose fences still read left to right. Fixing it needs a change to the composer's node view.
Evidence
Web app, headless Chromium, the same user message on both commits: a md fence with two Arabic lines and one English line.
Before (9010d7d5a1) |
After (55e1e3e149) |
 |
 |
| Arabic lines sit at the left edge, full stop on the right. |
Arabic lines sit at the right edge, full stop on the left. The English line is unchanged. |
Recordings, before and then after:
before.mp4
after.mp4
vp run scenarios:prove scripts/scenarios/arabic-lines-in-markdown-fence-read-right-to-left.e2e.ts: fails on base 9010d7d5a1 (the Arabic line is not right-aligned) and passes on 55e1e3e149.
vp run check:changed passes on this commit (format, lint, knip, typecheck).
The captures and the scenario run are from 55e1e3e149. Later commits narrowed the rule from all prose fences to md, markdown and mdx; the captured fence is md, so it is still covered.
Not shown
- The Windows desktop app, where the issue was reported. It renders the same web chat; it was not run.
- The composer: unchanged, as above.
- Arabic or Hebrew in
text or unlabelled fences: still left to right, on purpose.
- Assistant messages: the scenario covers a user message.
- Hebrew: the rule is per line and not language-specific, but only Arabic was run.
- Fira Code and Cascadia ligatures: the headless browser has no coding fonts, so the overprint is not reproduced.
Model and harness: Claude Opus 5.5 implemented, Codex (gpt-6.1-sol) reviewed, Claude Haiku 5.5 orchestrated, in Claude Code. Evidence re-run and captured by Claude Fable 5.2 in Claude Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…left
Prose fences (md, markdown, text, plain, and unlabelled) were laid out left to right, so Arabic and Hebrew lines had their punctuation on the wrong side, and coding-font ligatures overprinted right-to-left letters. Each line of a prose fence now takes the direction of its own words, and ligatures are off there. Code fences are unchanged.
Co-Authored-By: Claude Haiku 5.5 <[email protected]>
Prose fences in chat (md, markdown, text, plain, and unlabelled) were laid out left to right, so Arabic and Hebrew lines had their punctuation on the wrong side and coding-font ligatures overprinted right-to-left letters. Each line of a chat prose fence now takes the direction of its own words, and ligatures are off there. Code fences are unchanged. The composer keeps its previous layout: its code is one text block, so per-line alignment needs a different node view.
Co-Authored-By: Claude Haiku 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Markdown and MDX code fences now use plaintext bidirectional handling and disable ligatures. An end-to-end test checks Arabic and English line alignment and punctuation placement.
Changes: Code Fence Direction
| Layer / File(s) |
Summary |
Code fence direction and validation apps/web/src/index.css, scripts/scenarios/arabic-lines-in-markdown-fence-read-right-to-left.e2e.ts |
Markdown and MDX code fences use plaintext bidirectional handling and disable ligatures. The test checks Arabic alignment, punctuation placement, and English alignment. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- pingdotgg/t3code#42017: This change addresses bidirectional text handling and ligatures in Markdown and MDX fences. It does not cover text or unlabeled fences, Hebrew, or the composer.
Suggested reviewers: juliusmarminge, yash-singh1
Merge Risk: Minimal · up to d39ce
-
This change fixes Arabic line alignment in Markdown code fences in chat and leaves other code fences unchanged. The risk is low. The PR description lists more fence types than the code covers, so it may be worth correcting.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Title check |
 |
The title names the main change: Arabic and Hebrew lines in markdown code fences were laid out right to left, which the raw summary and objectives confirm. It uses a conventional commit prefix and a s… |
| Description check |
 |
The description follows the template. It has a Problem section (Markdown fences in chat laid out left to right, with punctuation and ligature issues), a Change section (CSS unicode-bidi plaintext and … |
Full details: Title check
-
Explanation
The title names the main change: Arabic and Hebrew lines in markdown code fences were laid out right to left, which the raw summary and objectives confirm. It uses a conventional commit prefix and a single sentence. The title does not mention the ligature change or the limited scope, but it does not need to cover every detail.
Full details: Description check
-
Explanation
The description follows the template. It has a Problem section (Markdown fences in chat laid out left to right, with punctuation and ligature issues), a Change section (CSS unicode-bidi plaintext and font-variant-ligatures none for md, markdown and mdx fences), a Scope section that links issue 42017, and a detailed Verification section with before/after screenshots, recordings, and the scenario and check commands with results. It also states what was not checked. The Scope section does not explain why no bug is needed beyond the issue link, which is fine since an issue is linked. The model and harness line is present. The Verification section includes the required screenshots and recordings, and it lists what was not verified. Overall the description is complete.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 82b910b and d39ce53.
Files selected for processing: 1
-
Files skipped from review as they are similar to previous changes: 1
-
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Text and unlabeled fences often hold directory trees and command output,
where a line starting with an Arabic or Hebrew name would turn right to
left and pull its branch glyphs off the tree. They stay left to right.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
shivamhwp
changed the title
fix(web): Arabic and Hebrew lines in chat code fences read right to left
fix(web): Arabic and Hebrew lines in markdown code fences read right to left
Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
takeover:blocked
Takeover blocked; reason in the PR body
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|