mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Image inside a link now works.
This commit is contained in:
parent
da8f2753e2
commit
e250348279
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user