diff --git a/Views/Notes/showNotes.phtml b/Views/Notes/showNotes.phtml index a152acf..3ae9e6a 100644 --- a/Views/Notes/showNotes.phtml +++ b/Views/Notes/showNotes.phtml @@ -4,11 +4,13 @@
setSafeMode(true); foreach($notes as $n) { echo '
'; echo '

' . $n["title"] . '

' - . '

' . $n["content"] . '

'; + . '

' . $parsedown->text($n['content'] ?? '') . '

'; echo '
'; } ?> diff --git a/index.php b/index.php index 5ad5c21..039e4c3 100644 --- a/index.php +++ b/index.php @@ -2,6 +2,8 @@ session_start(); + require_once __DIR__ . '/Library/Parsedown.php'; + spl_autoload_register(function ($className) { if (substr($className, 0, 4) !== 'ppa\\') { return; }