Skip to content

Commit dbb35d4

Browse files
committed
fix single newline in markdown input
1 parent 374710e commit dbb35d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

claat/parser/md/html.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ func nodeAttr(n *html.Node, name string) string {
221221
func stringifyNode(root *html.Node, trim bool) string {
222222
if root.Type == html.TextNode {
223223
s := textCleaner.Replace(root.Data)
224+
s = strings.Replace(s, "\n", " ", -1)
224225
if !trim {
225226
return s
226227
}

0 commit comments

Comments
 (0)