You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
412 B
PHP
20 lines
412 B
PHP
<?php
|
|
|
|
|
|
function loadmdfile($file) {
|
|
$root = $_SERVER["DOCUMENT_ROOT"];
|
|
include_once $root."/Parsedown.php";
|
|
$Parsedown = new Parsedown();
|
|
$text = file_get_contents($file);
|
|
echo $Parsedown->text($text);
|
|
}
|
|
//Loads a given file, outputs as HTML.
|
|
|
|
function md($text) {
|
|
$root = $_SERVER["DOCUMENT_ROOT"];
|
|
include_once $root."/Parsedown.php";
|
|
$Parsedown = new Parsedown();
|
|
echo $Parsedown->text($text);
|
|
}
|
|
|
|
?>
|