Skip to content

[Bug]: CJK full-width quotation marks break bold delimiter parsing #21112

Closed as not planned

Description

@damifan3

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

When bold formatting contains CJK full-width quotes next to regular Chinese characters, the Markdown parser strictly applies CommonMark left/right-flanking delimiter rules and incorrectly matches the middle delimiters.

Reproduction:

Render the following text:

实现**“大模型规划 + 专用模型执行”**或**“交叉审查”**。

你提到的**“高通第六代骁龙8超级至尊版”**,实际上是网友和数码圈对高通近年来**混乱、打架、朝令夕改**命名体系的一句典型嘲讽梗(类似把必胜客“超级至尊比萨”安在了手机芯片上)。

Expected behavior

The phrases inside the quotes should be bolded, not the word "或".

Actual behavior

Displays as: **“大模型规划 + 专用模型执行” + 或 (bold) + “交叉审查”**。

Impact

Minor bug or occasional failure

Version or commit

0.1.0

Environment

Windows11 25H2

Logs or stack traces

Screenshots, recordings, or supporting files

PixPin_2026-10-18_14-36-10.png

Workaround

No response

Activity

  1. added
    bug
    needs-triage
    on Oct 18, 2026
  2. juliusmarminge commented on Oct 18, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Closing as upstream spec behavior. Chat renders standard CommonMark, and under its emphasis rules a closing ** that follows a punctuation mark like ” and comes right before a letter such as 或 can't close bold. Stock micromark gives the same result for your example. Bold that works around CJK punctuation is an extension beyond the spec, not something our renderer gets wrong.

    Workaround: put the quotes outside the markers, like “**交叉审查**”. That bolds correctly under the standard rules.

    If you'd like CJK-friendly emphasis supported, please open an idea: https://github.com/pingdotgg/t3code/discussions/new?category=ideas

  3. added
    via-triage
    and removed
    needs-triage
    bug
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamvia-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions