diff --git a/pkg/render/render.go b/pkg/render/render.go index 12b715a..ef85dea 100644 --- a/pkg/render/render.go +++ b/pkg/render/render.go @@ -33,9 +33,10 @@ var ( func Render(p *core.Page) string { rend := blackfriday.MarkdownCommon([]byte(p.Markdown)) toc, html := buildTOC(string(rend)) - html = strings.Replace(html, "", `
`, -1) - html = strings.Replace(html, "", `
`, -1) - html = strings.Replace(html, "", `
`) + html = strings.ReplaceAll(html, "", `
`) + html = strings.ReplaceAll(html, " 1 { - ret = strings.Replace(ret, "", "", -1) + ret = strings.ReplaceAll(ret, "", "") } return }