BootstrapSQLiteBlog/pages/pd/index.php

30 lines
436 B
PHP

<?php
$varParsedown = new Parsedown();
$strText = $varParsedown->text("
# Hello world
1. Testing 123
2. Testing 456
```
if then else
```
");
if (Request::getArg(0) == "plain")
{
ob_clean();
echo $strText;
ob_end_flush();
exit;
}
?>
<div class="container my-5">
<div class="row">
<div class="col-lg-6">
<?= $strText; ?>
</div>
</div>
</div>