From 59475f4ec54d8b373796ed4de5064ddf985ba29d Mon Sep 17 00:00:00 2001 From: qszhu Date: Sat, 9 May 2026 15:25:42 +0800 Subject: [PATCH] fix(markdown): escape pipe chars in translation and en tables (#115) Escape unescaped pipe characters in markdown table cells across zh/01-slash-commands, 10-cli, ja/10-cli, and vi/10-cli. Unescaped pipes inside table cells are interpreted as column delimiters, breaking table rendering. --- 10-cli/README.md | 2 +- ja/10-cli/README.md | 2 +- vi/10-cli/README.md | 2 +- zh/01-slash-commands/README.md | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/10-cli/README.md b/10-cli/README.md index 6b08fb1..3ede2e1 100644 --- a/10-cli/README.md +++ b/10-cli/README.md @@ -826,7 +826,7 @@ claude -p --output-format json "query" | Use Case | Command | |----------|---------| -| Quick code review | `cat file | claude -p "review"` | +| Quick code review | `cat file \| claude -p "review"` | | Structured output | `claude -p --output-format json "query"` | | Safe exploration | `claude --permission-mode plan` | | Autonomous with safety | `claude --enable-auto-mode --permission-mode auto` | diff --git a/ja/10-cli/README.md b/ja/10-cli/README.md index 0718f02..d6f69fc 100644 --- a/ja/10-cli/README.md +++ b/ja/10-cli/README.md @@ -795,7 +795,7 @@ claude -p --output-format json "query" | ユースケース | コマンド | |-------------|----------| -| 簡易コードレビュー | `cat file | claude -p "review"` | +| 簡易コードレビュー | `cat file \| claude -p "review"` | | 構造化出力 | `claude -p --output-format json "query"` | | 安全な探索 | `claude --permission-mode plan` | | 安全装置付き自律実行 | `claude --enable-auto-mode --permission-mode auto` | diff --git a/vi/10-cli/README.md b/vi/10-cli/README.md index f721dd6..94958d1 100644 --- a/vi/10-cli/README.md +++ b/vi/10-cli/README.md @@ -756,7 +756,7 @@ claude -p --output-format json "query" | Trường Hợp Sử Dụng | Lệnh | |----------|---------| -| Quick code review | `cat file | claude -p "review"` | +| Quick code review | `cat file \| claude -p "review"` | | Structured output | `claude -p --output-format json "query"` | | Safe exploration | `claude --permission-mode plan` | | Autonomous with safety | `claude --enable-auto-mode --permission-mode auto` | diff --git a/zh/01-slash-commands/README.md b/zh/01-slash-commands/README.md index bfa05ec..422c843 100644 --- a/zh/01-slash-commands/README.md +++ b/zh/01-slash-commands/README.md @@ -28,7 +28,7 @@ Claude Code 目前提供 55+ 个内置命令和 5 个内置 Skills。你可以 | `/btw ` | 额外问题,不写入历史 | | `/chrome` | 配置 Chrome 浏览器集成 | | `/clear` | 清空对话(别名:`/reset`、`/new`) | -| `/color [color|default]` | 设置提示栏颜色 | +| `/color [color\|default]` | 设置提示栏颜色 | | `/compact [instructions]` | 压缩对话,可附带聚焦指令 | | `/config` | 打开设置(别名:`/settings`) | | `/context` | 用彩色网格可视化上下文占用 | @@ -37,11 +37,11 @@ Claude Code 目前提供 55+ 个内置命令和 5 个内置 Skills。你可以 | `/desktop` | 继续在桌面应用中处理(别名:`/app`) | | `/diff` | 查看未提交更改的交互式 diff | | `/doctor` | 检查安装健康状态 | -| `/effort [low|medium|high|max|auto]` | 设置推理强度;`max` 需要 Opus 4.6 | +| `/effort [low\|medium\|high\|max\|auto]` | 设置推理强度;`max` 需要 Opus 4.6 | | `/exit` | 退出 REPL(别名:`/quit`) | | `/export [filename]` | 将当前对话导出为文件或剪贴板内容 | | `/extra-usage` | 配置额外用量以应对速率限制 | -| `/fast [on|off]` | 切换快速模式 | +| `/fast [on\|off]` | 切换快速模式 | | `/feedback` | 提交反馈(别名:`/bug`) | | `/help` | 显示帮助 | | `/hooks` | 查看 hook 配置 |