From f70bf6ee325b1e587b24b0bf972e3986b4f773d3 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sun, 15 Dec 2024 11:02:44 -0800 Subject: [PATCH] fix hast try 2 --- packages/react-markdown/package.json | 1 + pnpm-lock.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/react-markdown/package.json b/packages/react-markdown/package.json index 739a7b59f..95eabe21b 100644 --- a/packages/react-markdown/package.json +++ b/packages/react-markdown/package.json @@ -37,6 +37,7 @@ "@radix-ui/react-use-callback-ref": "^1.1.0", "@types/hast": "^3.0.4", "classnames": "^2.5.1", + "hast": "^1.0.0", "lucide-react": "^0.468.0", "react-markdown": "^9.0.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d789ae9b8..9f7531afa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1449,8 +1449,8 @@ importers: specifier: ^2.5.1 version: 2.5.1 hast: - specifier: link:@†ypes/hast - version: link:@†ypes/hast + specifier: ^1.0.0 + version: 1.0.0 lucide-react: specifier: ^0.468.0 version: 0.468.0(react@19.0.0) @@ -4558,6 +4558,10 @@ packages: hast-util-whitespace@3.0.0: resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + hast@1.0.0: + resolution: {integrity: sha512-vFUqlRV5C+xqP76Wwq2SrM0kipnmpxJm7OfvVXpB35Fp+Fn4MV+ozr+JZr5qFvyR1q/U+Foim2x+3P+x9S1PLA==} + deprecated: Renamed to rehype + hastscript@6.0.0: resolution: {integrity: sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==} @@ -9615,6 +9619,8 @@ snapshots: dependencies: '@types/hast': 3.0.4 + hast@1.0.0: {} + hastscript@6.0.0: dependencies: '@types/hast': 2.3.10