fix markdown in descriptions
[mdref/mdref] / views / index.phtml
index dbd3017f372b7b4c479a8ab53597d767083cb744..417419d4d3c5ad0d247384445235dd2c6ec78291 100644 (file)
                        <?php $entry->recurse($refs, "/*.md", function($entry, $pattern, callable $recursor) { ?>
                        <ul>
                                <li><p><a href="<?=$entry->formatUrl()?>"><?=$entry->formatLink()?></a></p>
-                                       <?=$entry->readDescription()?>
-                                       <?php $recursor($entry, "/[A-Z]*.md") ?>
+                                       <?php
+                                               if (!isset($html)) {
+                                                       $html = new \mdref\Markdown;
+                                               }
+                                               echo $html->quick($entry->readDescription());
+                                               $recursor($entry, "/[A-Z]*.md");
+                                       ?>
                                </li>
                        </ul>
                        <?php }); ?>