Skip to content

Commit

Permalink
md_resolve_links: Fix the test for the nested autolink covering whole…
Browse files Browse the repository at this point in the history
… link text.

This fixes the fix for #152.
  • Loading branch information
mity committed Apr 14, 2021
1 parent bcb55d0 commit b2ee4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/md4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -3630,7 +3630,8 @@ md_resolve_links(MD_CTX* ctx, const MD_LINE* lines, int n_lines)
if((first_nested->flags & MD_MARK_RESOLVED) &&
first_nested->beg == opener->end &&
ISANYOF_(first_nested->ch, _T("@:.")) &&
first_nested->next == (last_nested - ctx->marks))
first_nested->next == (last_nested - ctx->marks) &&
last_nested->end == closer->beg)
{
first_nested->ch = _T('D');
first_nested->flags &= ~MD_MARK_RESOLVED;
Expand Down

0 comments on commit b2ee4b1

Please sign in to comment.