From f2d5cfa5fb5bde8c16525a6a3926269732491587 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 21 Jan 2026 13:14:39 +0100 Subject: [PATCH 1/2] parse changelog and readme as markdown --- views/bootstrap/class.ExtensionMgr.php | 35 +++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/views/bootstrap/class.ExtensionMgr.php b/views/bootstrap/class.ExtensionMgr.php index e1c5a717d..971fb0ebf 100644 --- a/views/bootstrap/class.ExtensionMgr.php +++ b/views/bootstrap/class.ExtensionMgr.php @@ -45,6 +45,27 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style { echo ''; } + function css() { /* {{{ */ +?> +div.changelog h1 { + font-size: 18px; + font-weight: bold; + line-height: 16px; +} +div.readme h1 { + font-size: 24px; + font-weight: bold; + line-height: 24px; +} +div.readme h2 { + font-size: 18px; + font-weight: bold; + line-height: 24px; +} + @@ -195,7 +216,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style { $list = $extmgr->getExtensionListByName($extname); /* Just show the changelog of the latest version */ $re = array_shift($list); - echo '
'.$re['changelog']."
"; + $Parsedown = new Parsedown(); + $changelog = $Parsedown->text(htmlspecialchars($re['changelog'])); + echo '
'.$changelog.'
'; +// echo '
'.$re['changelog']."
"; } /* }}} */ function changelog() { /* {{{ */ @@ -209,7 +233,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style { if(isset($extconf[$extname])) { $extconf = $extconf[$extname]; if(!empty($extconf['changelog']) && file_exists($extdir."/".$extname."/".$extconf['changelog'])) { - echo '
'.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
"; + $Parsedown = new Parsedown(); + $changelog = $Parsedown->text(file_get_contents($extdir."/".$extname."/".$extconf['changelog'])); + echo '
'.$changelog.'
'; +// echo '
'.file_get_contents($extdir."/".$extname."/".$extconf['changelog'])."
"; } } } /* }}} */ @@ -227,9 +254,9 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style { $extconf = $extconf[$extname]; $Parsedown = new Parsedown(); if(file_exists($extdir."/".$extname."/README.".$session->getLanguage().".md")) { - echo $Parsedown->text(file_get_contents($extdir."/".$extname."/README.".$session->getLanguage().".md")); + echo '
'.$Parsedown->text(file_get_contents($extdir."/".$extname."/README.".$session->getLanguage().".md")).'
'; } elseif(file_exists($extdir."/".$extname."/README.md")) { - echo $Parsedown->text(file_get_contents($extdir."/".$extname."/README.md")); + echo '
'.$Parsedown->text(file_get_contents($extdir."/".$extname."/README.md")).'
'; } } } /* }}} */ From db8afb996e8ebde3ffe5ac2f646f7620a22901bd Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 21 Jan 2026 13:15:31 +0100 Subject: [PATCH 2/2] add changes for 5.1.45 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 3049fb42f..89f74c6f3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,6 +10,7 @@ - secure password check can be turned off for admins - simple password strength algorithmn takes length of password into account, if length is greater than 8 +- parse changelog and readme of extension as markdown -------------------------------------------------------------------------------- Changes in version 5.1.44