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.

18 lines
338 B
PHP

<?php
function loadmdfile($file) {
require 'vendor/autoload.php';
$text = file_get_contents($file);
$Extra = new \Noi\ParsedownRubyText();
echo $Extra->text($text);
}
//Loads a given file, outputs as HTML.
function md($text) {
require 'vendor/autoload.php';
$Extra = new \Noi\ParsedownRubyText();
echo $Extra->text($text);
}
?>