Switch to useing markdown for user formatted text
This commit is contained in:
@@ -87,7 +87,7 @@ foreach($members as $i => $data){
|
||||
<p class="subtitle">Tittel</p>
|
||||
<?= '<input type="text" name="title" value="' . $project->getName() . '" class="boxinput">' ?><br>
|
||||
|
||||
<p class="subtitle">Beskrivelse</p>
|
||||
<p class="subtitle">Beskrivelse (<i>markdown</i>)</p>
|
||||
<textarea name="desc" cols="40" rows="5" class="boxinput"><?= implode($project->getDescription(), "\n"); ?></textarea>
|
||||
</div>
|
||||
|
||||
@@ -140,4 +140,4 @@ foreach($members as $i => $data){
|
||||
</form>
|
||||
<p>
|
||||
</main>
|
||||
</body>
|
||||
</body>
|
||||
|
@@ -92,7 +92,10 @@ $projects = array_values(array_filter(
|
||||
<div class="event-info">
|
||||
<h3 class="no-chin"><?= $project->getName() . " (ID: " . $projectID . ")"; ?></h3>
|
||||
<p class="subnote"><?= 'Organisert av: ' . $owner['name']; ?></p>
|
||||
<p><?= implode($project->getDescription(), "<br>"); ?></p>
|
||||
<?php
|
||||
$Parsedown = new \Parsedown();
|
||||
echo $Parsedown->text(implode("\n", $project->getDescription()));
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="event-actions">
|
||||
@@ -137,4 +140,4 @@ $projects = array_values(array_filter(
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user