mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-03 06:26:52 +00:00
Update page.tsx
This commit is contained in:
parent
10a4fdf1ac
commit
19dac7388a
@ -7,9 +7,7 @@ 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()
|
const result = await remark().use(html).process(fileContents)
|
||||||
.use(html) // No usar sanitize: false a menos que sea seguro
|
|
||||||
.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)
|
||||||
@ -23,7 +21,7 @@ export default async function ChangelogPage() {
|
|||||||
return (
|
return (
|
||||||
<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 dark:prose-invert" dangerouslySetInnerHTML={{ __html: changelogContent }} />
|
<div className="prose prose-lg" dangerouslySetInnerHTML={{ __html: changelogContent }} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user