all repos — grayfriday @ 4193e8665ac72e14a0380c91e4ba350bfe311e1c

blackfriday fork with a few changes

Drop misleading comment and turn func into method

* The comment is no longer true.
* Other functions similar to terminateBlockquote() are methods, so make
this one a method too.
Vytautas Ĺ altenis vytas@rtfb.lt
Sun, 01 Nov 2015 09:32:30 +0200
commit

4193e8665ac72e14a0380c91e4ba350bfe311e1c

parent

6c330778b2103a689cd94554ed7a5ca83d2888c7

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

jump to
M block.goblock.go

@@ -893,7 +893,7 @@ }

// blockquote ends with at least one blank line // followed by something without a blockquote prefix -func terminateBlockquote(p *parser, data []byte, beg, end int) bool { +func (p *parser) terminateBlockquote(data []byte, beg, end int) bool { if p.isEmpty(data[beg:]) <= 0 { return false }

@@ -927,7 +927,7 @@

if pre := p.quotePrefix(data[beg:]); pre > 0 { // skip the prefix beg += pre - } else if terminateBlockquote(p, data, beg, end) { + } else if p.terminateBlockquote(data, beg, end) { break }
M markdown.gomarkdown.go

@@ -385,7 +385,6 @@ // - extract references

// - expand tabs // - normalize newlines // - copy everything else -// - add missing newlines before fenced code blocks func firstPass(p *parser, input []byte) []byte { var out bytes.Buffer tabSize := TAB_SIZE_DEFAULT