From f212e320cb5987d144829602b995bca69b823bf8 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sat, 29 Nov 2025 23:39:32 +0100 Subject: [PATCH] Update markdown rendering to use ParsedownExtra --- app/rendering.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/rendering.php b/app/rendering.php index 5b27ebe..4da9798 100644 --- a/app/rendering.php +++ b/app/rendering.php @@ -14,7 +14,10 @@ function renderContentFile(string $filePath): string { if (!class_exists('Parsedown')) { require_once __DIR__ . '/vendor/Parsedown.php'; } - $html = '
' . (new Parsedown())->text(file_get_contents($filePath)) . '
'; + if (!class_exists('ParsedownExtra')) { + require_once __DIR__ . '/vendor/ParsedownExtra.php'; + } + $html = '
' . (new ParsedownExtra())->text(file_get_contents($filePath)) . '
'; setCachedMarkdown($filePath, $html); echo $html; }