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.rb unescapes \| before it matches the value against gitlab.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.

This MR was generated with Claude Code.

Edited by Marcel Amirault

Merge request reports

Loading
Loading