Remove extra space in headers replacement
arnaucube root@arnaucube.com
Sat, 09 Oct 2021 11:48:19 +0200
M
main.go
→
main.go
@@ -9,7 +9,7 @@ "github.com/gomarkdown/markdown"
"github.com/gomarkdown/markdown/parser" ) -const version = "v0_20210717" +const version = "v0_20210810" const directory = "blogo-input" const outputDir = "public"@@ -60,7 +60,7 @@ mdParser := parser.NewWithExtensions(mdExtensions)
htmlcontent := markdown.ToHTML([]byte(mdcontent), mdParser, nil) firstline := strings.Split(mdcontent, "\n")[0] - title := strings.Replace(firstline, "# ", "", -1) + title := strings.Replace(firstline, "#", "", -1) filename := strings.Split(post.Md, ".")[0]