md_is_link_destination: Use first char as an indicator... ... type of link destination we should try. If it is '<', then try only <>-styled link destination.
diff --git a/md4c/md4c.c b/md4c/md4c.c
index ffb88b0..2edc9ff 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -2023,8 +2023,10 @@ static inline int
md_is_link_destination(MD_CTX* ctx, OFF beg, OFF max_end, OFF* p_end,
OFF* p_contents_beg, OFF* p_contents_end)
{
- return (md_is_link_destination_A(ctx, beg, max_end, p_end, p_contents_beg, p_contents_end) ||
- md_is_link_destination_B(ctx, beg, max_end, p_end, p_contents_beg, p_contents_end));
+ if(CH(beg) == _T('<'))
+ return md_is_link_destination_A(ctx, beg, max_end, p_end, p_contents_beg, p_contents_end);
+ else
+ return md_is_link_destination_B(ctx, beg, max_end, p_end, p_contents_beg, p_contents_end);
}
static int