Move towards more MD and less PHP
parent
e1fd07c567
commit
5112b14721
@ -1,8 +1,10 @@
|
||||
<?php
|
||||
require "./Parsedown.php";
|
||||
$Parsedown = new Parsedown();
|
||||
$text = file_get_contents($page);
|
||||
echo '<div class="article article-headerless">';
|
||||
echo $Parsedown->text($text);
|
||||
echo '</div>';
|
||||
function customPageMD($page) {
|
||||
require_once "./Parsedown.php";
|
||||
$Parsedown = new Parsedown();
|
||||
$text = file_get_contents($page);
|
||||
echo '<div class="article article-headerless">';
|
||||
echo $Parsedown->text($text);
|
||||
echo '</div>';
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue