fix(ui): replace custom regex with marked Lexer for inline description parsing

Uses marked's Lexer.lexInline() instead of a hand-rolled regex to parse
inline links in the Header description. marked ships CommonJS, has zero
dependencies, and is already used in the monorepo. This gives us a proper
token model that handles edge cases the regex could not.

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-04-22 12:41:26 +01:00
parent ea11646d8d
commit ec109ce7fb
3 changed files with 23 additions and 35 deletions
+1
View File
@@ -7983,6 +7983,7 @@ __metadata:
eslint-plugin-storybook: "npm:^10.3.3"
glob: "npm:^13.0.0"
globals: "npm:^17.0.0"
marked: "npm:^15.0.12"
react: "npm:^18.0.2"
react-aria: "npm:~3.48.0"
react-aria-components: "npm:~1.17.0"