Browse Source

Remove extra space in headers replacement

master
arnaucube 3 years ago
parent
commit
8b015c43bd
2 changed files with 2 additions and 2 deletions
  1. BIN
      blogo
  2. +2
    -2
      main.go

BIN
blogo


+ 2
- 2
main.go

@ -9,7 +9,7 @@ import (
"github.com/gomarkdown/markdown/parser"
)
const version = "v0_20210717"
const version = "v0_20210810"
const directory = "blogo-input"
const outputDir = "public"
@ -60,7 +60,7 @@ func main() {
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]

Loading…
Cancel
Save