Replace Markdown parser by Parsedown

This commit is contained in:
Frédéric Guillot
2014-09-27 21:12:12 -04:00
parent 23753bde1c
commit 3fa549352c
18 changed files with 1461 additions and 3273 deletions

View File

@@ -21,7 +21,7 @@
<?php endif ?>
<div class="markdown">
<?= Helper\parse($comment['comment']) ?>
<?= Helper\markdown($comment['comment']) ?>
</div>
</div>

View File

@@ -3,5 +3,5 @@
</p>
<p class="activity-description">
<em><?= Helper\escape($task_title) ?></em><br/>
<div class="markdown"><?= Helper\parse($comment) ?></div>
<div class="markdown"><?= Helper\markdown($comment) ?></div>
</p>

View File

@@ -3,5 +3,5 @@
</p>
<p class="activity-description">
<em><?= Helper\escape($task_title) ?></em><br/>
<div class="markdown"><?= Helper\parse($comment) ?></div>
<div class="markdown"><?= Helper\markdown($comment) ?></div>
</p>

View File

@@ -2,6 +2,6 @@
<h3><?= t('New comment posted by %s', $comment['name'] ?: $comment['username']) ?></h3>
<?= Helper\parse($comment['comment']) ?>
<?= Helper\markdown($comment['comment']) ?>
<?= Helper\template('notification_footer', array('task' => $task)) ?>

View File

@@ -2,6 +2,6 @@
<h3><?= t('Comment updated') ?></h3>
<?= Helper\parse($comment['comment']) ?>
<?= Helper\markdown($comment['comment']) ?>
<?= Helper\template('notification_footer', array('task' => $task)) ?>

View File

@@ -14,7 +14,7 @@
<?php if (! empty($task['description'])): ?>
<h2><?= t('Description') ?></h2>
<?= Helper\parse($task['description']) ?: t('There is no description.') ?>
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
<?php endif ?>
<?= Helper\template('notification_footer', array('task' => $task)) ?>

View File

@@ -37,7 +37,7 @@
<?php if (! empty($task['description'])): ?>
<h2><?= t('Description') ?></h2>
<?= Helper\parse($task['description']) ?>
<?= Helper\markdown($task['description']) ?>
<?php endif ?>
<?= Helper\template('notification_footer', array('task' => $task)) ?>

View File

@@ -37,7 +37,7 @@
<?php if (! empty($task['description'])): ?>
<h2><?= t('Description') ?></h2>
<?= Helper\parse($task['description']) ?: t('There is no description.') ?>
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
<?php endif ?>
<?= Helper\template('notification_footer', array('task' => $task)) ?>

View File

@@ -5,7 +5,7 @@
</div>
<article class="markdown task-show-description">
<?= Helper\parse($task['description']) ?: t('There is no description.') ?>
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
</article>
</div>
<?php endif ?>