all repos — grayfriday @ d9ffdb74649c9a714d43540d0f9dc596f742ebba

blackfriday fork with a few changes

Use bytes.IndexByte to skip til EOL
Vytautas Ĺ altenis vytas@rtfb.lt
Sat, 10 Sep 2016 15:24:45 +0300
commit

d9ffdb74649c9a714d43540d0f9dc596f742ebba

parent

993325d13f751e2c5995fe98e3f8573ea446b23c

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

jump to
M block.goblock.go

@@ -1485,10 +1485,7 @@ }

} // otherwise, scan to the beginning of the next line - for data[i] != '\n' { - i++ - } - i++ + i += bytes.IndexByte(data[i:], '\n') + 1 } p.renderParagraph(data[:i])