svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ PackageDescription.tpl.php
| From: | Michael Gauthier | Date: | Tue, 29 Jun 2010 18:32:19 +0000 |
| Subject: | svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ PackageDescription.tpl.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9557@lists.php.net to get a copy of this message | ||
gauthierm Tue, 29 Jun 2010 18:32:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300859
Log:
Start using the new kick-ass markdown package to format package descriptions and release notes.
Still needs a fair bit of work before merging to live.
Changed paths:
U pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php
Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php 2010-06-29
14:08:22 UTC (rev 300858)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/PackageDescription.tpl.php 2010-06-29
18:32:19 UTC (rev 300859)
@@ -1,13 +1,16 @@
<p>
<?php
- $description = preg_replace("|\<\;\?php(.*)\?\>\;|Use",
"highlight_string('<?php'.html_entity_decode('\\1').'?>',
true)", $context->description);
- echo nl2br(trim($description));
+ $markdown = new \PEAR2\Text\Markdown_Extra();
+ echo $markdown->transform($context->description);
?>
</p>
<div class="package-release-notes">
<h3>Release Notes - <?php echo $context->version['release'];
?></h3>
<p>
- <?php echo nl2br(trim($context->notes)); ?>
+ <?php
+ $markdown = new \PEAR2\Text\Markdown_Extra();
+ echo $markdown->transform($context->notes);
+ ?>
</p>
</div>