diff --git a/web/app/changelog/page.tsx b/web/app/changelog/page.tsx index 50d3f2f..dd03508 100644 --- a/web/app/changelog/page.tsx +++ b/web/app/changelog/page.tsx @@ -1,15 +1,20 @@ import fs from "fs" import path from "path" -import ReactMarkdown from "react-markdown" +import { remark } from "remark" +import html from "remark-html" async function getChangelog() { const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md") try { const fileContents = fs.readFileSync(changelogPath, "utf8") - return fileContents + + // Convertir Markdown a HTML + const result = await remark().use(html).process(fileContents) + + return result.toString() } catch (error) { console.error("Error reading changelog file:", error) - return "Changelog content not found." + return "

Changelog content not found.

" } } @@ -20,9 +25,10 @@ export default async function ChangelogPage() {

Changelog

-
- {changelogContent} -
+
)