From 4d79405e22f9d4c25d183082081c044b562f0343 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 17 Jan 2021 14:54:53 +0100 Subject: [PATCH] Generate markdown for html view --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a6795f5..0575418 100644 --- a/main.go +++ b/main.go @@ -678,7 +678,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } builder := strings.Builder{} - if format == "markdown" { + if format == "markdown" || format == "html" { for _, item := range listItems { lines := strings.Split(item.Text, "\n") if len(lines) > 1 {