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(); }