Skip to content

fix(slash-commands): escape pipe chars in zh table for GitHub rendering#78

Open
3fxa wants to merge 1 commit intoluongnv89:mainfrom
3fxa:fix/zh-slash-commands-pipe-escaping
Open

fix(slash-commands): escape pipe chars in zh table for GitHub rendering#78
3fxa wants to merge 1 commit intoluongnv89:mainfrom
3fxa:fix/zh-slash-commands-pipe-escaping

Conversation

@3fxa
Copy link
Copy Markdown

@3fxa 3fxa commented Apr 15, 2026

Problem

In zh/01-slash-commands/README.md, pipe characters (|) inside backtick code spans in the table were not escaped, causing GitHub's Markdown renderer to split them into extra columns. Three commands were affected:

  • /color [color|default]default] spilled into next column
  • /effort [low|medium|high|max|auto] → only medium showed in wrong column
  • /fast [on|off] → only off] showed in wrong column

Fix

Replaced unescaped | with \|, consistent with how the en, uk, and vi versions already handle this.

Test

Verified on GitHub preview of the fix branch before submitting.

before:
b6e643e63036ee6d71f4baeb0e802999

after:
e44eff64-77ad-4a9f-91fd-cb1c8a301df3

Copy link
Copy Markdown

@GeoDaoyu GeoDaoyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks the same as #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants