From 94762c62e4d27981ac32bc95f6a9d9d53976faed Mon Sep 17 00:00:00 2001 From: ston1th Date: Sun, 4 Aug 2019 22:00:43 +0200 Subject: [PATCH] remove newline at the end of codeblocks --- pkg/render/render.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }