From 8b3a052115c7d6fcd0303dbdc8993687459d31fa Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sat, 15 Feb 2025 15:40:35 +0100 Subject: [PATCH] Update page.tsx --- web/app/guides/[slug]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/guides/[slug]/page.tsx b/web/app/guides/[slug]/page.tsx index 665817a..2d11f13 100644 --- a/web/app/guides/[slug]/page.tsx +++ b/web/app/guides/[slug]/page.tsx @@ -24,10 +24,10 @@ export async function generateStaticParams() { })) } -// 🔹 Elimina las comillas de los fragmentos de código en línea dentro de function cleanInlineCode(content: string) { return content.replace(/(.*?)<\/code>/g, (_, codeContent) => { - return `${codeContent}` + const cleanedCode = codeContent.replace(/^`|`$/g, "") // 🔹 Elimina las comillas invertidas alrededor del código + return `${cleanedCode}` }) }