From d719bcf101a5ee47a5af2481ffdaa51fc97f9f95 Mon Sep 17 00:00:00 2001 From: manfromhuh Date: Sun, 17 Jul 2022 17:27:08 -0400 Subject: [PATCH] Place Markdown parsing in a function --- common/php/md_read.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/common/php/md_read.php b/common/php/md_read.php index 8d372cc..d3b1cd8 100644 --- a/common/php/md_read.php +++ b/common/php/md_read.php @@ -1,11 +1,15 @@ text($MD_Text); + fclose($MD_File); + } echo "
\n" . /* Adds the option to change the font size of the article text. */ "
Text Size: @@ -24,8 +28,8 @@
  • MD
  • ". - $MD_Parser->text($MD_Text) . "\n
    "; - fclose($MD_File); + read_md("article.md") . "\n"; + echo "\n\n"; echo("\n"); if ($tag_data != NULL){