mirror of
https://github.com/status-im/markdown.git
synced 2025-02-23 00:28:25 +00: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…
x
Reference in New Issue
Block a user