Image inside a link now works.

This commit is contained in:
Alex Xandra Albert Sim 2013-09-09 12:51:46 +07:00
parent da8f2753e2
commit e250348279

View File

@ -180,8 +180,8 @@ const (
// '[': 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
}