mirror of
https://github.com/arnaucube/blogo.git
synced 2026-02-07 03:46:40 +01:00
Remove extra space in headers replacement
This commit is contained in:
4
main.go
4
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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user