diff --git a/web/app/changelog/page.tsx b/web/app/changelog/page.tsx
index cbfaf2a..ab44a2f 100644
--- a/web/app/changelog/page.tsx
+++ b/web/app/changelog/page.tsx
@@ -1,35 +1,14 @@
import fs from "fs"
import path from "path"
-import { remark } from "remark"
-import html from "remark-html"
-
-function markdownToHtml(markdown: string): string {
- return markdown
- .replace(/^### (.*$)/gim, "
$1
")
- .replace(/^## (.*$)/gim, "$1
")
- .replace(/^# (.*$)/gim, "$1
")
- .replace(/\*\*(.*?)\*\*/gim, "$1")
- .replace(/\*(.*?)\*/gim, "$1")
- .replace(/`(.*?)`/gim, "$1
")
- .replace(/^- (.*$)/gim, "")
- .replace(/\n/g, "
");
-}
async function getChangelog() {
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
try {
const fileContents = fs.readFileSync(changelogPath, "utf8")
-
- // Convertimos Markdown a HTML manualmente
- const formattedContent = markdownToHtml(fileContents)
-
- // Usamos remark-html como Ășltimo paso
- const result = await remark().use(html).process(formattedContent)
-
- return result.toString()
+ return fileContents
} catch (error) {
console.error("Error reading changelog file:", error)
- return "Changelog content not found.
"
+ return "Changelog content not found."
}
}
@@ -37,10 +16,12 @@ export default async function ChangelogPage() {
const changelogContent = await getChangelog()
return (
-
+
Changelog
-
+
+ {changelogContent}
+
)