fix(ui): replace react-markdown with inline parser to fix ESM Jest failures

react-markdown v8+ is ESM-only and breaks Jest in Node-role packages that
transitively import @backstage/ui via core-app-api. Since the Header
description only needs inline link support, a small regex-based parser
is sufficient and avoids the ESM dependency entirely.

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-04-20 17:59:45 +01:00
parent c0817115e8
commit 2deaa49120
3 changed files with 39 additions and 20 deletions
-1
View File
@@ -7987,7 +7987,6 @@ __metadata:
react-aria: "npm:~3.48.0"
react-aria-components: "npm:~1.17.0"
react-dom: "npm:^18.0.2"
react-markdown: "npm:^8.0.0"
react-router-dom: "npm:^6.30.2"
react-stately: "npm:~3.46.0"
storybook: "npm:^10.3.3"