claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Desktop Code tab: bold (**…**) is invisible for Chinese text in Markdown preview and chat (Windows)

Open HomoDreamer opened this issue 2 months ago • 2 comments

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

In the Claude desktop app (Code tab) on Windows, Chinese text inside **…** is rendered at regular weight, indistinguishable from body text. This happens both in the Markdown file preview and in chat replies. __…__ behaves the same; ***…*** shows italic only; English bold is only slightly heavier. Headings (### / ####) are the only way Chinese text appears bold. The same file renders bold correctly in VS Code preview and Feishu.

What Should Happen?

Chinese text inside **…** should be rendered bold, like English text and like headings.

Error Messages/Logs


Steps to Reproduce

  1. Create a Markdown file with (full test file in Additional Information):
**研究**
这是普通文字,**这是重点短语**,后面继续。
plain, **bold English**, plain.
#### 研究
  1. Open it in the Code tab file preview (or ask Claude to reply with the same text in chat).
  2. Compare the weight of the Chinese bold text with body text and with the heading.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude desktop for Windows 2.2553.1.0 (Code tab); Claude Code CLI 2.1.276

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Likely cause: emphasis weight seems to be applied in a way the CJK fallback font (Microsoft YaHei) cannot honor, e.g. through the Latin variable font's wght axis via font-variation-settings, so CJK glyphs stay regular. Setting a real font-weight (600 or more) on strong/b, or allowing font-synthesis for weight, should fix it. Impact: Chinese-language users lose all inline emphasis in chat replies and file previews.

Image Full test file (letters match the screenshot; only F and G, which are headings, render bold; D is only slightly heavier; H shows italic only):
A. Standalone Chinese bold line:

**研究**

B. Bold label followed by body text:

**为什么**:后面这句是普通正文。

C. Chinese bold inside a sentence: 这是普通文字,**这是重点短语**,后面继续普通文字。

D. English bold: plain text, **bold English words**, plain again.

E. Underscore bold: __研究__

F. Level-3 heading:

### 研究

G. Level-4 heading:

#### 研究

H. Bold italic: ***研究***

I. Numbered list item:

1. **编号条目里的加粗**

J. Bullet list item:

- **列表条目里的加粗**:后面是普通文字。

HomoDreamer avatar Sep 18 '26 10:09 HomoDreamer

Root cause looks found, details and measurements in #104529.

The weak/invisible bold comes from the redesign experiment fizzy_lake (data-cds-fizzy-lake on <html>), which sets strong to weight 500/501. Anthropic Serif has no Cyrillic or CJK glyphs, so non-Latin text falls back to a system font with only 400/700 faces (Georgia for Cyrillic on Windows). At 500/501 Chromium picks the 400 face and does not synthesize bold, so bold disappears completely for non-Latin text and is only slightly heavier for Latin.

Right after a fresh sign-in the experiment isn't applied yet and bold renders correctly; after a reload it breaks again. Setting the response font to "Match interface" restores bold.

Selichkin avatar Oct 23 '26 08:10 Selichkin

This has been fixed, so we're closing this issue. If you disagree, let us know here and we can re-open it. Thanks for reporting!

bpasero-ant avatar Nov 29 '26 18:11 bpasero-ant