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
348 B
PHP
18 lines
348 B
PHP
<?php
|
|
|
|
|
|
function loadmdfile($file) {
|
|
require 'vendor/autoload.php';
|
|
$text = file_get_contents($file);
|
|
$Extra = new \Noi\ParsedownExtraRubyText();
|
|
echo $Extra->text($text);
|
|
}
|
|
//Loads a given file, outputs as HTML.
|
|
|
|
function md($text) {
|
|
require 'vendor/autoload.php';
|
|
$Extra = new \Noi\ParsedownExtraRubyText();
|
|
echo $Extra->text($text);
|
|
}
|
|
|
|
?>
|