From 8d24472fe5bad654d9bd4470c6f90df6b8e42e4b Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Tue, 18 Nov 2025 21:04:38 +0000 Subject: [PATCH] Repair Typedoc path-replacement regex --- typedoc.plugin.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typedoc.plugin.mjs b/typedoc.plugin.mjs index a4cd3def7..ee9da937a 100644 --- a/typedoc.plugin.mjs +++ b/typedoc.plugin.mjs @@ -74,9 +74,9 @@ export function load(app) { // - strip the .mdx extension app.renderer.on(td.MarkdownPageEvent.END, page => { if (!page.contents) return; - page.contents = page.contents.replace(/\(((?:[^\/\)]+\/)*[^\/\)]+)\.mdx([^)]*)?\)/gm, (_, path, suffix) => { + page.contents = page.contents.replace(/]\(((?:[^\/\)]+\/)*[^\/\)]+)\.mdx([^)]*)?\)/gm, (_, path, suffix) => { const rootRelativeUrl = resolve('/api', dirname(page.url), path); - return `(${rootRelativeUrl}${suffix ?? ''})`; + return `](${rootRelativeUrl}${suffix ?? ''})`; }); }); }