From dbb35d409408c34af1aaab696761448b4f4318b6 Mon Sep 17 00:00:00 2001 From: marcacohen Date: Thu, 5 Dec 2019 18:14:34 +0000 Subject: [PATCH] fix single newline in markdown input --- claat/parser/md/html.go | 1 + 1 file changed, 1 insertion(+) diff --git a/claat/parser/md/html.go b/claat/parser/md/html.go index 446e5486a..16a684cf0 100644 --- a/claat/parser/md/html.go +++ b/claat/parser/md/html.go @@ -221,6 +221,7 @@ func nodeAttr(n *html.Node, name string) string { func stringifyNode(root *html.Node, trim bool) string { if root.Type == html.TextNode { s := textCleaner.Replace(root.Data) + s = strings.Replace(s, "\n", " ", -1) if !trim { return s }