Generate markdown for html view

This commit is contained in:
Peter Stuifzand 2021-01-17 14:54:53 +01:00
parent 7a72931527
commit 4d79405e22

View File

@ -678,7 +678,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
builder := strings.Builder{} builder := strings.Builder{}
if format == "markdown" { if format == "markdown" || format == "html" {
for _, item := range listItems { for _, item := range listItems {
lines := strings.Split(item.Text, "\n") lines := strings.Split(item.Text, "\n")
if len(lines) > 1 { if len(lines) > 1 {