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. The docs site renders it correctly, but GitLab and markdownlint read the pipe as a cell separator. This MR makes the ui and external-ui shortcodes treat \| as a literal pipe, so {{< ui text="Navigation\|Analyze" >}} renders as Analyze.
It also adds a table case to the shortcode test page.
-
Test code:
| UI text | Expected | | ------- | -------- | | {{< ui text="Settings" >}} | Settings | | {{< ui text="Navigation\|Analyze" >}} | Analyze | -
Rendered:
The gitlab project needs the matching linter and in-app help change in the related MR.
- Related to Support escaped pipes in UI text shortcodes (gitlab-org/gitlab!263924 - merged)
- Related to Convert bold UI text in the GitLab docs to the ... (team-tasks#1756)
This MR was generated with Claude Code.
Edited by Marcel Amirault
