From 69b92681b9b4c313c7c8520f999f59a676b29ec9 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 11 Sep 2025 17:27:18 +0300 Subject: [PATCH] docs: fix same page link not resolved correctly (#13481) --- www/packages/remark-rehype-plugins/src/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/packages/remark-rehype-plugins/src/constants.ts b/www/packages/remark-rehype-plugins/src/constants.ts index 934cda4618..f7ce4a6d86 100644 --- a/www/packages/remark-rehype-plugins/src/constants.ts +++ b/www/packages/remark-rehype-plugins/src/constants.ts @@ -1 +1,2 @@ -export const MD_LINK_REGEX = /\[(.*?)\]\((?(![a-z]+!|\.).*?)\)/gm +export const MD_LINK_REGEX = + /\[(.*?)\]\((?(![a-z]+!|\.|page\.mdx).*?)\)/gm