all repos — grayfriday @ c1917970db871797b7fad54faa69fd76fd69bae3

blackfriday fork with a few changes

Use EXTENSION_BACKSLASH_LINE_BREAK
neclepsio neclepsio@gmail.com
Wed, 22 Apr 2015 14:09:39 +0200
commit

c1917970db871797b7fad54faa69fd76fd69bae3

parent

d4c83fb4daf75cf9c60ab1267955617919f61558

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M inline.goinline.go

@@ -168,6 +168,7 @@ out.Truncate(eol)

precededByTwoSpaces := offset >= 2 && data[offset-2] == ' ' && data[offset-1] == ' ' precededByBackslash := offset >= 1 && data[offset-1] == '\\' // see http://spec.commonmark.org/0.18/#example-527 + precededByBackslash = precededByBackslash && p.flags&EXTENSION_BACKSLASH_LINE_BREAK != 0 // should there be a hard line break here? if p.flags&EXTENSION_HARD_LINE_BREAK == 0 && !precededByTwoSpaces && !precededByBackslash {