forked from 20xd6/simple_blog
Fix output
This commit is contained in:
parent
d719bcf101
commit
3a2dc7651a
@ -1,13 +1,14 @@
|
||||
<?php
|
||||
#Markdown parser dependancy
|
||||
require ($_SERVER['DOCUMENT_ROOT'].'/common/vendor/autoload.php');
|
||||
function read_md($md_path){
|
||||
function read_md($MD_Path){
|
||||
#Markdown parseing code.
|
||||
echo $md_path;
|
||||
$MD_Parser = new ParsedownExtra();
|
||||
$MD_Path = $md_path;
|
||||
#$MD_Path = $md_path;
|
||||
$MD_File = fopen($MD_Path, "r") or die("File not found.");
|
||||
$MD_Text = fread($MD_File, filesize($MD_Path));
|
||||
$MD_Parser->text($MD_Text);
|
||||
return $MD_Parser->text($MD_Text);
|
||||
fclose($MD_File);
|
||||
}
|
||||
echo "<article id=\"article\">\n" . /* Adds the option to change the font size of the article text. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user