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}` }) }