all repos — grayfriday @ e2503482791441fc61805a4eab86cc3bc6b87f0c

blackfriday fork with a few changes

Image inside a link now works.
Alex Xandra Albert Sim bertzzie@gmail.com
Mon, 09 Sep 2013 12:51:46 +0700
commit

e2503482791441fc61805a4eab86cc3bc6b87f0c

parent

da8f2753e27c7fd79265c7420b7e2b9b94aa3dd5

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

jump to
M inline.goinline.go

@@ -180,8 +180,8 @@ )

// '[': parse a link or an image or a footnote func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { - // no links allowed inside other links - if p.insideLink { + // no links allowed inside regular links, footnote, and deferred footnotes + if p.insideLink && (data[offset-1] == '[' || data[offset+1] == '^') { return 0 }