diff --git a/block.go b/block.go index d5731d1..d4daf94 100644 --- a/block.go +++ b/block.go @@ -1485,10 +1485,7 @@ func (p *parser) paragraph(data []byte) int { } // 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])