diff --git a/web/app/changelog/page.tsx b/web/app/changelog/page.tsx index 44fd6eb..1f1bdff 100644 --- a/web/app/changelog/page.tsx +++ b/web/app/changelog/page.tsx @@ -1,14 +1,14 @@ import fs from "fs" import path from "path" import ReactMarkdown from "react-markdown" +import remarkGfm from "remark-gfm" +import remarkBreaks from "remark-breaks" async function getChangelog() { const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md") try { const fileContents = fs.readFileSync(changelogPath, "utf8") - - // Asegurar que los saltos de lĂnea dobles se respeten - return fileContents.replace(/\r?\n/g, " \n") + return fileContents } catch (error) { console.error("Error reading changelog file:", error) return "Changelog content not found." @@ -23,7 +23,9 @@ export default async function ChangelogPage() {
{changelogContent}+