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

Ignore anchors with download attribute set (resolves #31) #32

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

mobeigi
Copy link
Contributor

@mobeigi mobeigi commented Oct 11, 2024

Description

This PR resolves #31

Testing

Did we want to add tests for this?
There isn't a specific one for existing anchor checks like _blank.

Note

There were currently lint differences between the main branch. I did not run lint to avoid this PR having unrelated changes.
Might be a good idea to lint before cutting next version.

src/index.tsx Outdated Show resolved Hide resolved
@tomcru tomcru merged commit 2d0e546 into tomcru:main Oct 11, 2024
2 checks passed
@tomcru
Copy link
Owner

tomcru commented Oct 11, 2024

hasAttribute was correct, my bad!

@mobeigi
Copy link
Contributor Author

mobeigi commented Oct 11, 2024

@tomcru I tried the truthy check with anchor.download initially too and it didn't work haha. :D

Thanks for cutting the release!

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.

Ignore anchors with download attribute set
2 participants