From d4c83fb4daf75cf9c60ab1267955617919f61558 Mon Sep 17 00:00:00 2001 From: neclepsio Date: Wed, 22 Apr 2015 14:04:08 +0200 Subject: [PATCH] Fix previous commit Backslash was not removed from output. --- inline.go | 3 +++ 1 file changed, 3 insertions(+) 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 }