Skip to content

Commit

Permalink
fix single newline in markdown input
Browse files Browse the repository at this point in the history
  • Loading branch information
mco-gh committed Dec 5, 2019
1 parent 374710e commit dbb35d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions claat/parser/md/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dbb35d4

Please sign in to comment.