diff --git a/debug.php b/debug.php new file mode 100644 index 0000000..521da40 --- /dev/null +++ b/debug.php @@ -0,0 +1,49 @@ +text($content_md); + return [$yaml, $html]; + } else { + throw new Exception("YAML-Header im Markdown nicht gefunden."); + } +} + +// Hauptlogik +try { + $url = 'https://git.rpi-virtuell.de/Comenius-Institut/FOERBICO/raw/branch/main/Website/content/posts/2025-02-25-KLT-M%C3%BCnster/index.md'; + echo "Lade Markdown von: $url\n\n"; + $markdown = fetch_markdown($url); + echo "Markdown-Inhalt:\n" . $markdown . "\n\n"; + + list($yaml, $html) = parse_markdown($markdown); + + echo "--- YAML-Header als Array ---\n"; + print_r($yaml); + echo "\n--- Generiertes HTML ---\n"; + echo $html . "\n"; + +} catch (Exception $e) { + echo "Fehler: " . $e->getMessage(); +}