forked from 20xd6/simple_blog
Update article generation to include a author byline
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
require ($_SERVER['DOCUMENT_ROOT'].'/common/vendor/autoload.php');
|
||||
function read_md($MD_Path){
|
||||
#Markdown parseing code.
|
||||
echo $md_path;
|
||||
$MD_Parser = new ParsedownExtra();
|
||||
#$MD_Path = $md_path;
|
||||
$MD_File = fopen($MD_Path, "r") or die("File not found.");
|
||||
$MD_Text = fread($MD_File, filesize($MD_Path));
|
||||
return $MD_Parser->text($MD_Text);
|
||||
|
||||
Reference in New Issue
Block a user