added parsedown for markdown
This commit is contained in:
parent
da82f93e99
commit
8c13989d47
@ -4,11 +4,13 @@
|
||||
|
||||
<div class="container">
|
||||
<?php
|
||||
$parsedown = new Parsedown();
|
||||
$parsedown->setSafeMode(true);
|
||||
|
||||
foreach($notes as $n) {
|
||||
echo '<div class="item-4-12">';
|
||||
echo '<h3>' . $n["title"] . '</h3>'
|
||||
. '<p>' . $n["content"] . '</p>';
|
||||
. '<p>' . $parsedown->text($n['content'] ?? '') . '</p>';
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user