mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-07-03 14:26:53 +00:00
Update page.tsx
This commit is contained in:
parent
a773b91f05
commit
ec67963800
@ -6,7 +6,7 @@ async function getChangelog() {
|
|||||||
try {
|
try {
|
||||||
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
const fileContents = fs.readFileSync(changelogPath, "utf8")
|
||||||
|
|
||||||
|
// Asegurar que el contenido no tiene espacios innecesarios
|
||||||
return fileContents.trim()
|
return fileContents.trim()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error reading changelog file:", error)
|
console.error("Error reading changelog file:", error)
|
||||||
@ -21,9 +21,11 @@ export default async function ChangelogPage() {
|
|||||||
<div className="bg-white text-gray-900 min-h-screen">
|
<div className="bg-white text-gray-900 min-h-screen">
|
||||||
<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>
|
||||||
|
{/* Eliminamos clases innecesarias para evitar que el HTML se vea como texto */}
|
||||||
<div
|
<div
|
||||||
className="prose prose-lg max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md"
|
className="max-w-none bg-gray-100 p-4 border border-gray-300 rounded-md"
|
||||||
dangerouslySetInnerHTML={{ __html: changelogContent }}
|
style={{ whiteSpace: "normal" }} // Esto evita que el HTML se muestre como texto plano
|
||||||
|
dangerouslySetInnerHTML={{ __html: changelogContent }} // Renderiza el HTML correctamente
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user