Skip to content

Manual reader: bold ending in full-width punctuation renders as literal asterisks before a CJK letter (#33723 fixed chat only) #36946

Description

@sunhaolin

What happens

In the console's manual reader (/_console/apps/<app>/docs/<book>/<page>), a **bold** run that ends in full-width punctuation and is followed directly by a CJK letter is not rendered bold: the page shows the raw asterisks.

This is the same CommonMark flanking limitation that #33723 fixed for chat (PR #34079 added remark-cjk-friendly through CHAT_MARKDOWN_PLUGINS in ui/packages/plugin-chatbot). A code search finds remark-cjk-friendly only under ui/packages/plugin-chatbot, so the manual reader's markdown pipeline does not run it.

Reproduce

HotCRM 6.6.0 on @objectstack/* 18.6.0, UI language 简体中文.

  1. Open the Service app → 帮助 → 服务手册 (/_console/apps/app.objectstack.hotcrm.service/docs/crm_service_manual/crm_service_cases).
  2. Read the paragraph on reopening a case.

Source (src/service/docs/crm_service_cases.zh.md:49):

**关闭日期**和**解决耗时(小时)**会被清空

Rendered: 「关闭日期」 is bold, then the page shows the literal text **解决耗时(小时)**会被清空.

Two more pages checked in the browser, same result:

Page Source Rendered text
Expense manual, crm_expense_recording - **每个项目一张报销单。**每个项目的费用… **每个项目一张报销单。**每个项目的费用…
Marketing manual, crm_marketing_campaigns **投资回报率(%)**是(… **投资回报率(%)**是(…
Marketing manual, crm_marketing_automation **它跳过和拒绝什么:**已经在活动中的人… **它跳过和拒绝什么:**已经在活动中的人…

Expected

The run renders bold, as it now does in chat after #33723.

Reach

Any package manual written in Chinese (or Japanese) hits this whenever a bold label ends in ), 。 or : and the sentence continues without a space, which is the normal way to write both languages. In HotCRM's shipped zh-CN manuals a source scan finds 17 such lines in 5 pages:

  • src/service/docs/crm_service_cases.zh.md 49, 50
  • src/expense/docs/crm_expense_recording.zh.md 27, 44, 67
  • src/marketing/docs/crm_marketing_automation.zh.md 12, 14, 16, 18, 22, 24, 26, 30, 32
  • src/marketing/docs/crm_marketing_campaigns.zh.md 55, 59
  • src/docs/crm_analytics_metrics.zh.md 69

The English manuals are unaffected. The package cannot fix this without bending its prose around the parser (inserting a space or moving the punctuation outside the bold), so it is reported here rather than worked around.

Suggested fix

Run the same CJK-friendly emphasis rule in the manual reader's markdown pipeline (ideally one shared plugin list for chat and docs), with a test for **…(…)** + CJK letter and **…。** + CJK letter.

If the MCP read_package_doc / search_package_docs output or any other surface renders these pages through its own pipeline, it likely needs the same rule; not checked.

Activity

  1. added
    bug
    priority:p1
    domain:ui
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p1 · Bug · pm:queue · size S.
    Rationale: the p1 grade is the filer's and stays as set. The fix is the one #33723 made for chat (PR #34079, remark-cjk-friendly), applied to the manual reader's markdown pipeline. Better still, both readers share one plugin list, so a third reader cannot miss it again. Routed to repo:objectstack#3 (area:ux) by the maintainer's seat routing.

  3. added
    pm:queue
    on Nov 24, 2026
  4. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v

    Claim: PM loop round 1 (area ux-B, p1 routed by the seat outside the area's list surface)
    Session: session_01WGufzhoBbwh8URjwQHde8v
    Account: os-support-ai
    Branch: claude/issue-36946-manual-reader-cjk-bold
    Worktree: objectstack-issue-36946
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: ux-B
    File surface: the manual reader's markdown pipeline (measured first; on 62692b7f8b3 the candidate is ui/packages/plugin-markdown/src/MarkdownImpl.tsx remarkPlugins = [remarkGfm, remarkAlert] at :98), ui/packages/plugin-markdown/package.json (the remark-cjk-friendly dependency, plus the lockfile line), ui/packages/plugin-chatbot/src/chatMarkdownPlugins.ts only to share one CJK emphasis rule rather than write a second, their tests, one changeset listing every published package touched
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: #33723 (PR #34079) fixed the CommonMark flanking limit for chat only, through CHAT_MARKDOWN_PLUGINS (plugin-chatbot/src/chatMarkdownPlugins.ts:9, remark-cjk-friendly/parseOnly). A code search finds the plugin nowhere else
    Thread-read: 7128905277
    Premise: holds by code read (remark-cjk-friendly appears only under ui/packages/plugin-chatbot; MarkdownImpl.tsx:98 runs remarkGfm and remarkAlert only). The dev confirms the docs portal renders through that pipeline before editing
    Serial constraints cleared: no open PR touches ui/packages/plugin-markdown/** or chatMarkdownPlugins.ts; open PRs #36845 and #34223 touch pnpm-lock.yaml, so a lockfile conflict is regenerated by whichever lands second
    Pre-claim lane: domain:ui. Console markdown renderer only; no spec key. The MCP read_package_doc / search_package_docs surfaces (card's last line) are read and reported, not changed. This lane
    Pre-claim deps: none
    Prior rulings read: #33723 and its fix PR #34079 (the chat precedent); check-prior-rulings.mjs --card 36946: 0 ruling comments; no conflict

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
    os-dev-report

    {
      "issue": 36946,
      "status": "done",
      "branch": "claude/issue-36946-manual-reader-cjk-bold",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36968",
      "pr_number": 36968,
      "head_sha": "f0a46f212cf10cc48287d4e582685b1e5a1dd189",
      "remote_branch": "origin/claude/issue-36946-manual-reader-cjk-bold@f0a46f212cf10cc48287d4e582685b1e5a1dd189",
      "session": "session_01WGufzhoBbwh8URjwQHde8v",
      "dev_effort": "Dev-effort: medium",
      "rounds": "Rounds: 1",
      "premise_still_valid": true,
      "summary": "Measured: the console docs page (ui/apps/console/src/pages/DocPage.tsx) renders the article with MarkdownRenderer from @object-ui/plugin-markdown, whose MarkdownImpl remark chain was [remarkGfm, remarkAlert], so the premise holds. MarkdownImpl now runs remark-cjk-friendly/parseOnly first ([remarkCjkFriendly, remarkGfm, remarkAlert]), with the dependency added at ^2.3.4 (lockfile +3 lines, one importer entry, no new package snapshot). Sharing choice: neither plugin-chatbot nor plugin-markdown depends on the other, and the config shapes differ (streamdown PluginConfig vs react-markdown remarkPlugins), so one exported helper would need a new cross-package dependency. Each package therefore imports the plugin once, and each site's comment names the other. chatMarkdownPlugins.ts is a comment-only change. MCP read_package_doc / search_package_docs return the raw doc content verbatim (packages/runtime/src/domains/mcp-package-docs.ts) and render no markdown. Reported in the PR, not changed.",
      "tests": "Head f0a46f212cf. RED on base 62692b7f8b3 with only the test added: markdown-render.test.tsx 'Tests 7 failed | 17 passed (24)'. GREEN: pnpm --filter @object-ui/plugin-markdown test 'Test Files 6 passed (6) / Tests 63 passed (63)'; pnpm --filter @object-ui/plugin-markdown type-check (tsc --noEmit && tsc -p tsconfig.test.json) VERDICT command-exit 0. ABLATION via scripts/ablation-replace.mjs on the remarkPlugins line: 'anchor 1 -> 0, blob 2e6b55acc36f -> 860686304aa7', 'Tests 7 failed | 17 passed (24)', restored 'blob == HEAD (2e6b55acc36f) and git diff HEAD is empty'. The test imports ./MarkdownImpl from source, so there is no dist hop. pnpm --filter @object-ui/plugin-markdown build: exit 0, and dist/index.js imports remark-cjk-friendly (external). plugin-chatbot (comment only) is not run locally; CI Test UI and Type Check UI cover it.",
      "gates": "Local: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran ran.list gives 'Run reconciliation: 60 derived, 59 run, 1 NOT-MEASURED, 0 UNRUN', exit 0. 58 families exit 0, including pnpm --dir ui exec vitest run scripts/ (Test Files 172 passed | 2 skipped; Tests 5126 passed | 2 skipped). NOT MEASURED: pnpm check:dual-build-cjs-loads, reason: self-test passed (94 cases) but the scan answered PREREQUISITE NOT MET (exit 3), because it needs every @objectstack dist; CI Lint & Repo Gates ran it, success. overlap-check before push: VERDICT clean exit 0. CI on PR head f0a46f212cf: 59 check-runs, 0 failure. Required set all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build & E2E UI, Live E2E UI, Dogfood Regression Gate. Also success: Check Changeset, Check PR Size, PR-body guards, Validate Package Dependencies, Build Docs, Lint · ESLint. The rest were skipped by design (opt-in/schedule/queue legs).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "line_budget": "6 files, +114 / -1 (dispatch-gates count), under the 3000 human-merge threshold; no skills/** touched",
      "files_changed": [
        ".changeset/36946-manual-reader-cjk-bold.md",
        "pnpm-lock.yaml",
        "ui/packages/plugin-chatbot/src/chatMarkdownPlugins.ts",
        "ui/packages/plugin-markdown/package.json",
        "ui/packages/plugin-markdown/src/MarkdownImpl.tsx",
        "ui/packages/plugin-markdown/src/markdown-render.test.tsx"
      ],
      "deviations": [
        "Branch not merged with the newer origin/main before the PR (AGENTS.md multi-agent section 10); local verification was scoped per os-dev local-verification rules, and overlap-check shows clean merges with origin/main and the three PRs that share a file (36845, 35129, 34223).",
        "PR body order: the dispatch's two mandated opening lines come first, then the seat signature line, then Fixes #36946."
      ],
      "mcp_calls": "0",
      "api_writes": "3 — relay repository_dispatch for pr_create (executed as POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/36968/assignees); this os-dev-report comment via post-stamped (POST /repos/objectstack-ai/objectstack/issues/36946/comments). git push x2 is not REST.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — GFM strikethrough (~~) beside full-width punctuation is outside remark-cjk-friendly by its README (sibling remark-cjk-friendly-gfm-strikethrough); not reproduced on any shipped manual, recorded in PR Acceptance notes"
      ]
    }
  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v

    Close-out · 2026-11-24T12:31Z · area ux-B: PR #36968 merged at 2026-11-24T12:31Z (merge commit 23d61fa68f3840b7b2837f5856ee828a468eb5b4; L1 ACCEPT 7131020058), and this card closed as completed. pm:dispatched is removed. The manual reader's renderer (@object-ui/plugin-markdown) now runs remark-cjk-friendly/parseOnly, the same rule chat runs. Bold that ends in full-width punctuation before a CJK letter now renders bold. The MCP read_package_doc / search_package_docs return raw markdown and render nothing, so they needed no change.

  8. removed
    pm:dispatched
    on Nov 24, 2026
  9. added a commit that references this issue on Dec 1, 2026
    23d61fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions