github/cmark-gfm

Auto link trailing punctuations(' and ")

yuin opened this issue · 1 comments

yuin commented

Spec says

Trailing punctuation (specifically, ?, !, ., ,, :, *, _, and ~) will not be considered part of the autolink, though they may be included in the interior of the link:

But the implementation

if (strchr("?!.,:*_~'\"", data[link_end - 1]) != NULL)

handles ' and " as excluded punctuations.

Which one is correct?

Which one is correct?

Waiting on response.