update changelog

This commit is contained in:
MacRimi 2025-02-14 16:54:44 +01:00
parent eed29619de
commit a9adcccd0b

View File

@ -7,7 +7,9 @@ async function getChangelog() {
const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md") const changelogPath = path.join(process.cwd(), "..", "CHANGELOG.md")
try { try {
const fileContents = fs.readFileSync(changelogPath, "utf8") const fileContents = fs.readFileSync(changelogPath, "utf8")
const result = await remark().use(html).process(fileContents) const result = await remark()
.use(html, { sanitize: false }) // This allows HTML in the Markdown
.process(fileContents)
return result.toString() return result.toString()
} catch (error) { } catch (error) {
console.error("Error reading changelog file:", error) console.error("Error reading changelog file:", error)
@ -22,10 +24,8 @@ export default async function ChangelogPage() {
<div className="bg-white text-gray-900"> <div className="bg-white text-gray-900">
<div className="container mx-auto px-4 py-16 max-w-4xl"> <div className="container mx-auto px-4 py-16 max-w-4xl">
<h1 className="text-4xl font-bold mb-8">Changelog</h1> <h1 className="text-4xl font-bold mb-8">Changelog</h1>
<div className="prose prose-lg" dangerouslySetInnerHTML={{ __html: changelogContent }} /> <div className="prose prose-lg max-w-none" dangerouslySetInnerHTML={{ __html: changelogContent }} />
</div> </div>
</div> </div>
) )
} }