version 1.15, 2017/03/11 12:35:40 |
version 1.16, 2017/04/17 12:52:00 |
|
|
if ((link = n->child) == NULL) |
if ((link = n->child) == NULL) |
return 0; |
return 0; |
|
|
descr = link->next == NULL ? link : link->next; |
/* Link text. */ |
|
descr = link->next; |
|
if (descr == NULL || descr->flags & NODE_DELIMC) |
|
descr = link; /* no text */ |
md_rawword("["); |
md_rawword("["); |
outflags &= ~MD_spc; |
outflags &= ~MD_spc; |
do { |
do { |
md_word(descr->string); |
md_word(descr->string); |
descr = link->next == NULL ? NULL : descr->next; |
descr = descr->next; |
} while (descr != NULL); |
} while (descr != NULL && !(descr->flags & NODE_DELIMC)); |
outflags &= ~MD_spc; |
outflags &= ~MD_spc; |
|
|
|
/* Link target. */ |
md_rawword("]("); |
md_rawword("]("); |
md_uri(link->string); |
md_uri(link->string); |
outflags &= ~MD_spc; |
outflags &= ~MD_spc; |
md_rawword(")"); |
md_rawword(")"); |
|
|
|
/* Trailing punctuation. */ |
|
while (descr != NULL) { |
|
md_word(descr->string); |
|
descr = descr->next; |
|
} |
return 0; |
return 0; |
} |
} |
|
|