From b36396bf73103fb6ad96752019c59a4af93d55c5 Mon Sep 17 00:00:00 2001 From: William Diakite Date: Fri, 13 Oct 2023 17:41:51 -0400 Subject: [PATCH] sanitize parsed html anchor --- src/lib/helpers/data.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/helpers/data.ts b/src/lib/helpers/data.ts index 3f62b0e..b391a5a 100644 --- a/src/lib/helpers/data.ts +++ b/src/lib/helpers/data.ts @@ -43,7 +43,8 @@ export async function fetchData(type: keyof typeof setup) { .filter(([path]) => !path.includes('template')) .map(async ([path, resolver]) => { const md = await resolver() - const mdHtml = md.default.render().html + let mdHtml = md.default.render().html + mdHtml = mdHtml.replace(/