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:

    Screenshot_2026-10-22_at_12.21.43

The gitlab project needs the matching linter and in-app help change in the related MR.

This MR was generated with Claude Code.

Edited by Marcel Amirault

Merge request reports

Loading
Loading