From 5d504ffa4c320e8968dc2f036493592a80ddf1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Tue, 6 May 2025 10:30:55 +0200 Subject: [PATCH] Fix resolution of links in reusable content (#3212) --- .changeset/moody-maps-chew.md | 5 ++++ .../DocumentView/ReusableContent.tsx | 23 ++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 .changeset/moody-maps-chew.md diff --git a/.changeset/moody-maps-chew.md b/.changeset/moody-maps-chew.md new file mode 100644 index 000000000..0c06afc2a --- /dev/null +++ b/.changeset/moody-maps-chew.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix resolution of links in reusable contents diff --git a/packages/gitbook/src/components/DocumentView/ReusableContent.tsx b/packages/gitbook/src/components/DocumentView/ReusableContent.tsx index bbf2d23f7..ccb66babd 100644 --- a/packages/gitbook/src/components/DocumentView/ReusableContent.tsx +++ b/packages/gitbook/src/components/DocumentView/ReusableContent.tsx @@ -46,14 +46,21 @@ export async function ReusableContent(props: BlockProps