Loading
Support escaped pipes in UI text shortcodes
What does this MR do?
Namespaced UI text, like {{< ui text="Navigation|Analyze" >}}, puts a bare | in a Markdown table row, which splits the cell when GitLab renders the file. This MR lets writers escape the pipe as \| in tables:
scripts/lint/check_ui_text.rbunescapes\|before it matches the value againstgitlab.pot. It is currently failing in a cleanup MR due to the|character in UI text in a table (failing job: https://gitlab.com/gitlab-org/gitlab/-/jobs/17373081308)- The in-app help transformer unescapes
\|, removes the namespace, and escapes any pipe left in the label, so the table stays intact. - The UI text style guide explains how to escape the pipe in tables.
The docs site needs the matching shortcode change in the related MR.
- Related to Support escaped pipes in UI text shortcodes (gitlab-org/technical-writing/docs-gitlab-com!2776 - merged)
- Related to Convert bold UI text in the GitLab docs to the ... (gitlab-org/technical-writing/team-tasks#1756)
This MR was generated with Claude Code.
Edited by Marcel Amirault