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

@ -6,6 +6,7 @@ import (
"fmt"
"os"
"github.com/ficcdaf/zona/internal/convert"
"github.com/ficcdaf/zona/internal/util"
)
@ -45,13 +46,5 @@ func main() {
fmt.Println("File validation failed!")
os.Exit(1)
}
file, err := os.Open(*mdPath)
if err != nil {
fmt.Println("Error reading file:", err)
os.Exit(1)
}
defer file.Close()
fmt.Println("File opened :)")
convert.ConvertFile(*mdPath, "test/test.html")
}