diff --git a/inline.go b/inline.go index c6790c0..40dc7e0 100644 --- a/inline.go +++ b/inline.go @@ -174,6 +174,9 @@ func lineBreak(p *parser, out *bytes.Buffer, data []byte, offset int) int { return 0 } + if precededByBackslash && eol > 0 { + out.Truncate(eol - 1) + } p.r.LineBreak(out) return 1 }