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