-
Notifications
You must be signed in to change notification settings - Fork 34
More autolinks fixed (For #82) #91
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
Conversation
|
Sigh, that The spec for the autolinks extension says: "All such recognized autolinks can only come at the beginning of But to match the testcase it has to be detecting I can only fix it by doing a lot of special-casing for a stupid corner case which is (I think) just wrong. |
|
I'd be fine with pulling that out into its own testcase and marking it as pending so the testcase with the rest of them working passes |
|
mmmmailto:scyther@pokemon.com aaamailto:scyther@pokemon.com mmmmailto: scyther@pokemon.com mailto: scyther@pokemon.com aaamailto: scyther@pokemon.com |
Makes sense, coming up |
|
Done. |
This PR makes most of the tests in
spec/fixtures/gfm-extensions.txt:542pass (see below) and also enables a few more cases which pass if the autolinks extension is enabled.There are 2 cases that are failing:
First, which I can probably fix but I am just tired:
mmmmailto:scyther@pokemon.comShould be:
"<p>mmmmailto:<a href=\"mailto:scyther@pokemon.com\">scyther@pokemon.com</a></p>\n"Is:
"<p>mmm<a href=\"mailto:scyther@pokemon.com\">mailto:scyther@pokemon.com</a></p>\n"Second, which is just wrong because that is not a valid domain (domains MUST contain a dot according to the same spec):
**Autolink and http://inlines**Should be:
"<p><strong>Autolink and <a href=\"http://inlines\">http://inlines</a></strong></p>\n"Is:
"<p><strong>Autolink and http://inlines</strong></p>\n"If it's edited to have a proper domain like
inlines.comit works properly.