Remove extra space in headers replacement

This commit is contained in:
arnaucube
2021-10-09 11:48:19 +02:00
parent b0f913c15c
commit 8b015c43bd
2 changed files with 2 additions and 2 deletions

BIN
blogo

Binary file not shown.

View File

@@ -9,7 +9,7 @@ import (
"github.com/gomarkdown/markdown/parser" "github.com/gomarkdown/markdown/parser"
) )
const version = "v0_20210717" const version = "v0_20210810"
const directory = "blogo-input" const directory = "blogo-input"
const outputDir = "public" const outputDir = "public"
@@ -60,7 +60,7 @@ func main() {
htmlcontent := markdown.ToHTML([]byte(mdcontent), mdParser, nil) htmlcontent := markdown.ToHTML([]byte(mdcontent), mdParser, nil)
firstline := strings.Split(mdcontent, "\n")[0] firstline := strings.Split(mdcontent, "\n")[0]
title := strings.Replace(firstline, "# ", "", -1) title := strings.Replace(firstline, "#", "", -1)
filename := strings.Split(post.Md, ".")[0] filename := strings.Split(post.Md, ".")[0]