diff --git a/web/app/changelog/page.tsx b/web/app/changelog/page.tsx index fabdff2..90de180 100644 --- a/web/app/changelog/page.tsx +++ b/web/app/changelog/page.tsx @@ -4,28 +4,20 @@ 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") - const result = await remark() - .use(html, { sanitize: false }) // This allows HTML in the Markdown - .process(fileContents) - return result.toString() - } catch (error) { - console.error("Error reading changelog file:", error) - return "

Changelog content not found.

" - } + const changelogPath = path.join(process.cwd(), "CHANGELOG.md") + const fileContents = fs.readFileSync(changelogPath, "utf8") + + const result = await remark().use(html).process(fileContents) + return result.toString() } export default async function ChangelogPage() { const changelogContent = await getChangelog() return ( -
-
-

Changelog

-
-
+
+

Changelog

+
) -} +} \ No newline at end of file