fixed title casing

This commit is contained in:
Daniel Fichtinger 2024-11-25 14:15:33 -05:00
parent ff1357c8da
commit 12ebba687b
7 changed files with 44 additions and 14 deletions

View file

@ -42,11 +42,11 @@ func PathIsValid(path string, requireFile bool) bool {
}
func processLink(p string) string {
fmt.Println("Processing link...")
// fmt.Println("Processing link...")
ext := filepath.Ext(p)
// Only process if it points to an existing, local markdown file
if ext == ".md" && filepath.IsLocal(p) {
fmt.Println("Markdown link detected...")
// fmt.Println("Markdown link detected...")
return ChangeExtension(p, ".html")
} else {
return p