Update page.tsx

This commit is contained in:
MacRimi 2025-02-14 19:27:05 +01:00 committed by GitHub
parent a773b91f05
commit ec67963800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>