diff options
| -rw-r--r-- | markdown/ast_paragraph.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/markdown/ast_paragraph.go b/markdown/ast_paragraph.go index 197c7e3..7e865c5 100644 --- a/markdown/ast_paragraph.go +++ b/markdown/ast_paragraph.go @@ -58,6 +58,10 @@ func paragraph(lxs *lexers, oneLine bool) (*astParagraph, *ParseError) { n = 0 tree.content = append(tree.content, astLiteral(s)) case lexerModifier: + // replace line break by space + if n > 0 { + tree.content = append(tree.content, astLiteral(" ")) + } n = 0 mod, err := modifier(lxs) if err != nil { |
