github / cmark-gfm

GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto link trailing punctuations(' and ")

yuin opened this issue · comments

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.