Fixed bug in ![nonexistent]. [jgm/peg-markdown]
See https://github.com/jgm/peg-markdown/commit/cc1be41
This commit is contained in:
parent
43c0e8660d
commit
b9766af7aa
@ -508,7 +508,13 @@ StrongUl = TwoUlOpen
|
|||||||
{ $$ = mk_list(STRONG, a) }
|
{ $$ = mk_list(STRONG, a) }
|
||||||
|
|
||||||
Image = '!' ( ExplicitLink | ReferenceLink )
|
Image = '!' ( ExplicitLink | ReferenceLink )
|
||||||
{ $$.key = IMAGE }
|
{ if $$.key == LINK {
|
||||||
|
$$.key = IMAGE
|
||||||
|
} else {
|
||||||
|
result := $$
|
||||||
|
$$.children = cons(mk_str("!"), result.children)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Link = ExplicitLink | ReferenceLink | AutoLink
|
Link = ExplicitLink | ReferenceLink | AutoLink
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user