Merge with upstream #3

Merged
manfromhuh merged 19 commits from 20xd6/simple_blog:master into master 2022-07-26 10:42:55 -04:00
Showing only changes of commit 3a2dc7651a - Show all commits

View File

@@ -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. */