From 08c8da9158fd68c90f9a2b59d3a5f2a1abb2644d Mon Sep 17 00:00:00 2001 From: Gcat101 Date: Sun, 28 Jan 2024 22:26:25 +0300 Subject: [PATCH] fixed local readme image bug --- src/routes/p/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/p/+page.svelte b/src/routes/p/+page.svelte index 170e55f..e6070d7 100644 --- a/src/routes/p/+page.svelte +++ b/src/routes/p/+page.svelte @@ -89,7 +89,7 @@ if (!res.ok) return; const text = await res.text(); - docs = markdown(text); + docs = markdown(text.replace(/(\!\[.*]\()(\.\/)(.*\))/g, `$1https://raw.githubusercontent.com/${author}/${repo}/${branch}/$3`)); } catch {} try {