new entry sorting; style updates
[mdref/mdref] / views / index.phtml
index 0baafb841237b52860385c196c26d413a8e974b1..78d95617242e2c7a33bfda605984cc207a3dcd04 100644 (file)
@@ -1,12 +1,15 @@
+
 <h1>mdref</h1>
 
 <?php if (isset($html)) : ?>
        <?= $html ?>
 <?php elseif (isset($text)) : ?>
+
        <p style="white-space:pre-wrap"><?= $esc($text) ?></p>
 <?php elseif (isset($refs)) : ?>
        <?php foreach ($refs as $repo) : /* @var \mdref\Repo $repo */ ?>
                <?php foreach ($repo as $entry) : /* @var \mdref\Entry $entry */ ?>
+
                <h2 id="<?= $anchor($entry->getTitle()) ?>">
                        <a href="<?= $esc($entry->getName()) ?>"
                        ><?= $esc($entry->getTitle()) ?></a></h2>