all repos — grayfriday @ 7dd925f93d7d2a5d8166dcd500ca682a5c1db6f5

blackfriday fork with a few changes

Merge pull request #107 from shurcooL/master

Improve parser to detect LineBreak independently of renderer.
Vytautas Ĺ altenis vytas@rtfb.lt
Wed, 27 Aug 2014 10:28:42 +0300
commit

7dd925f93d7d2a5d8166dcd500ca682a5c1db6f5

parent

52f7a2a7b02d11db19411c28e6c67fc351f20aaf

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

jump to
M inline.goinline.go

@@ -166,8 +166,10 @@ eol--

} out.Truncate(eol) + precededByTwoSpaces := offset >= 2 && data[offset-2] == ' ' && data[offset-1] == ' ' + // should there be a hard line break here? - if p.flags&EXTENSION_HARD_LINE_BREAK == 0 && end-eol < 2 { + if p.flags&EXTENSION_HARD_LINE_BREAK == 0 && !precededByTwoSpaces { return 0 }