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

FR: Identify external links in html code #3

Closed
dwrolvink opened this issue Oct 7, 2021 · 2 comments
Closed

FR: Identify external links in html code #3

dwrolvink opened this issue Oct 7, 2021 · 2 comments

Comments

@dwrolvink
Copy link
Collaborator

  • Search for all <a href="string" instances that start with http/https (case insensitive)
  • Add in a class="external-link"
@dwrolvink
Copy link
Collaborator Author

done
also added a tag for nonexistent links: `class="nonexistent-link"

@dwrolvink
Copy link
Collaborator Author

local links are always prefixed with / so that is the criterium now: if it does not start with / it is tagged as an external link

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

1 participant