svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ PackageDescription.tpl.php
[email protected] (Michael Gauthier)
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
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>