anomalyco / anomalyco/opencode

Bold/italic closed by CJK punctuation renders as literal asterisks in markdown

Open
#38,490 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 23, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

In the desktop and web markdown renderer, emphasis whose closing marker sits directly against CJK punctuation renders as literal asterisks instead of bold/italic. For example 含**「重点」**内容 shows the ** as plain text and 「重点」 stays unstyled. Emphasis at normal (ASCII / whitespace) boundaries works fine, so it only bites on CJK text — very visible in zh/ja/ko conversations.

Steps to reproduce
  1. Send or display a line containing bold/italic text closed by CJK punctuation, e.g. 含**「重点」**内容.
  2. Look at the rendered markdown in the TUI / web / desktop UI.

Expected: 「重点」 is bold and the asterisks are consumed. Actual: the ** markers show up verbatim and 「重点」 is not emphasized.

Screenshot and/or share link

Renderer tokenization issue; no UI screenshot. Before/after is covered by the unit tests in the linked PR.

Operating System

macOS (also reproducible in the web UI, OS-independent)

Terminal

N/A — affects the rendered markdown view, not a specific terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.