Implemented converting a markdown file to HTML
This commit is contained in:
parent
b36db1119c
commit
43cf614462
4 changed files with 79 additions and 34 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue