all repos — grayfriday @ a58274acefadf66ab817cbe5ec0efa62332bda59

blackfriday fork with a few changes

Minor style fix: declare ref first in a loop
Vytautas Ĺ altenis vytas@rtfb.lt
Wed, 04 Nov 2015 21:07:39 +0200
commit

a58274acefadf66ab817cbe5ec0efa62332bda59

parent

c29209fcdacb19244702838b1b5b5a4cb6337ffd

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

jump to
M markdown.gomarkdown.go

@@ -454,8 +454,8 @@ if p.flags&EXTENSION_FOOTNOTES != 0 && len(p.notes) > 0 {

p.r.Footnotes(&output, func() bool { flags := LIST_ITEM_BEGINNING_OF_LIST for i := 0; i < len(p.notes); i += 1 { - var buf bytes.Buffer ref := p.notes[i] + var buf bytes.Buffer if ref.hasBlock { flags |= LIST_ITEM_CONTAINS_BLOCK p.block(&buf, ref.title)