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
@@ -52,7 +52,6 @@
"clsx": "^2.1.1",
"react-aria": "~3.48.0",
"react-aria-components": "~1.17.0",
"react-markdown": "^8.0.0",
"react-stately": "~3.46.0",
"use-sync-external-store": "^1.4.0"
},