Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto link trailing punctuations(' and ") #297

Open
yuin opened this issue Dec 3, 2022 · 1 comment
Open

Auto link trailing punctuations(' and ") #297

yuin opened this issue Dec 3, 2022 · 1 comment

Comments

@yuin
Copy link

yuin commented Dec 3, 2022

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?

@jmooring
Copy link

Which one is correct?

Waiting on response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants