The scientific method cries tonight.
parent
e3fcf4d658
commit
3ba88df744
@ -1,10 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
function customPageMD($page) {
|
function customPageMD($page) {
|
||||||
require_once 'vendor/autoload.php';
|
require_once 'vendor/autoload.php';
|
||||||
|
include_once "includes/mdutils.php";
|
||||||
$Parsedown = new \Noi\ParsedownRubyText();
|
$Parsedown = new \Noi\ParsedownRubyText();
|
||||||
$text = file_get_contents($page);
|
$text = loadmdfile($page);
|
||||||
echo '<div class="article article-headerless">';
|
echo '<div class="article article-headerless">';
|
||||||
echo $Parsedown->text($text);
|
echo $text;
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue