Fixed bug in ![nonexistent]. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/cc1be41
This commit is contained in:
Michael Teichgräber 2011-02-21 02:46:27 +01:00
parent 43c0e8660d
commit b9766af7aa

View File

@ -508,7 +508,13 @@ StrongUl = TwoUlOpen
{ $$ = mk_list(STRONG, a) }
Image = '!' ( ExplicitLink | ReferenceLink )
{ $$.key = IMAGE }
{ if $$.key == LINK {
$$.key = IMAGE
} else {
result := $$
$$.children = cons(mk_str("!"), result.children)
}
}
Link = ExplicitLink | ReferenceLink | AutoLink