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

Fix Issue #163 Autolinker plugin incorrectly ignores URL fragment identifiers #214

Merged
merged 1 commit into from
Feb 24, 2014

Conversation

nauzilus
Copy link
Contributor

Fix for issue #163 (and extras I found)

  • Capture query string and document fragment in url regex
  • If inserting to attr-value, need to match url-link first, otherwise query string '=' gets picked up as punctuation.
  • Don't prepend "mailto:" if it's already there (e.g. inside an href)

Capture query string and document fragment in url regex
If inserting to attr-value, need to match url-link first, otherwise query string '=' gets picked up as punctuation.
Don't prepend mailto: if it's already there (e.g. inside an href)
LeaVerou added a commit that referenced this pull request Feb 24, 2014
Fix Issue #163 Autolinker plugin incorrectly ignores URL fragment identifiers
@LeaVerou LeaVerou merged commit 3ddb92d into PrismJS:gh-pages Feb 24, 2014
@LeaVerou
Copy link
Member

Thanks!

@nauzilus nauzilus deleted the autolinker-fixes branch February 24, 2014 05:25
@Golmote Golmote mentioned this pull request Dec 13, 2014
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

Successfully merging this pull request may close these issues.

2 participants