GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@shivamhwp shivamhwp commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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)
Before: the Arabic lines start at the left edge with their full stop on the right After: the Arabic lines end at the right edge with their full stop on the left, and the English line stays on the left
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.

All reactions
shivamhwp and others added 2 commits November 24, 2026 10:02
@shivamhwp @claude
fix(web): Arabic and Hebrew lines in prose code fences read right to …
7c3bf27
…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]>
@shivamhwp @claude
fix(web): Arabic and Hebrew lines in chat code fences read right to left
55e1e3e
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]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 24, 2026
@shivamhwp
shivamhwp marked this pull request as ready for review November 24, 2026 14:04
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed 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 Passed 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

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: issue-watch/42017
  • File: .coderabbit.config.ts
  • Commit: d39ce53
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 21d0839e-ad5a-4d49-b7d2-4e6ebcc5f70e
Commits

Reviewing files that changed from the base of the PR and between 82b910b and d39ce53.

Files selected for processing: 1

  • apps/web/src/index.css
Files skipped from review as they are similar to previous changes: 1

  • apps/web/src/index.css

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
juliusmarminge and others added 3 commits November 24, 2026 14:18
@juliusmarminge
Merge remote-tracking branch 'origin/main' into issue-watch/42017
7bfd64f
@juliusmarminge @claude
style(web): flatten the prose-fence direction rule to match its neigh…
547e8a5
…bours

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
fix(web): only markdown fences lay out lines by their own direction
82b910b
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]>
@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
shivamhwp added 2 commits November 26, 2026 22:10
@shivamhwp
Merge branch 'main' into issue-watch/42017
d39ce53
@shivamhwp
Merge branch 'main' into issue-watch/42017
a0b2108
@shivamhwp 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
@shivamhwp
shivamhwp merged commit 3f7acd7 into main Nov 26, 2026
39 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shivamhwp
shivamhwp deleted the issue-watch/42017 branch November 26, 2026 21:42
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 27, 2026
@shivamhwp @claude
@juliusmarminge @github-actions
fix(web): Arabic and Hebrew lines in markdown code fences read right …
e4b7f0a
…to left (pingdotgg#42064)

Co-authored-by: Claude Haiku 5.5 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit 3f7acd7)
@github-actions github-actions Bot mentioned this pull request Nov 27, 2026
Upstream fixes (2026-11-27) Ryoku-dev/hyakki#11
Merged
github-actions Bot pushed a commit to Ryoku-dev/hyakki that referenced this pull request Nov 27, 2026
@shivamhwp @claude
@juliusmarminge @github-actions
fix(web): Arabic and Hebrew lines in markdown code fences read right …
16669d5
…to left (pingdotgg#42064)

Co-authored-by: Claude Haiku 5.5 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit 3f7acd7)
@omegent-app omegent-app Bot mentioned this pull request Nov 27, 2026
Merge upstream main through 1f63e7f385e3 patroza/t3code#679
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

Projects

None yet

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.

2 participants

@shivamhwp @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.