summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index edb3850..d12fd01 100644
--- a/main.go
+++ b/main.go
@@ -21,7 +21,7 @@ func main() {
if !f.IsDir() && strings.HasSuffix(f.Name(), ".md") {
fmt.Printf("Found content: %s", f.Name())
htmlContent := convertToHtml(filePath)
- htmlPath := filePath + ".html"
+ htmlPath := strings.Replace(filePath, ".md", ".html", 1)
os.WriteFile(htmlPath, htmlContent, 0o777)
fmt.Printf("Wrote file: %s", htmlPath)
}