Implemented converting a markdown file to HTML

This commit is contained in:
Daniel Fichtinger 2024-11-04 02:15:12 -05:00
parent b36db1119c
commit 43cf614462
4 changed files with 79 additions and 34 deletions

View file

@ -3,10 +3,8 @@ package util
import (
"errors"
"fmt"
"os"
"path/filepath"
"strconv"
)
// CheckExtension checks if the file located at path (string)
@ -26,7 +24,7 @@ func PathIsValid(path string, requireFile bool) bool {
if os.IsNotExist(err) {
return false
} else if requireFile {
fmt.Printf("Directory status: %s\n", strconv.FormatBool(s.IsDir()))
// fmt.Printf("Directory status: %s\n", strconv.FormatBool(s.IsDir()))
return !s.IsDir()
}
return err == nil