arnaucube
arnaucube/blogoPublic Self-hosted repository
Remove extra space in headers replacement
arnaucube root@arnaucube.com
Sat, 09 Oct 2021 11:48:19 +0200
commit

8b015c43bd16612a16ef5daefcc332929ed8d002

parent

b0f913c15cae110e84abdb508a25b33a1bc5acf7

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
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]