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
392 B
PHTML

<?php
function loadmdfile($file) {
include_once "Parsedown.php";
include_once "ParsedownExtra.php";
$text = file_get_contents($file);
$Extra = new ParsedownExtra();
echo $Extra->text($text);
}
//Loads a given file, outputs as HTML.
function md($text) {
include_once "Parsedown.php";
include_once "ParsedownExtra.php";
$Extra = new ParsedownExtra();
echo $Extra->text($text);
}
?>