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 clipboard write in heading_id hash links #67

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

MattIPv4
Copy link
Member

Type of Change

  • Markdown-It Plugins: heading_id

What issue does this relate to?

cc #64

What should this PR do?

I had this stashed locally for #64 but never commited/pushed it -- the current functionality was meant to use this.getAttribute('href') as part of manually composing the URL, but was then partially switched to using this.href resulting in the URL being duplicated.

This PR fixes that functionality to fully switch to just using this.href, which contains the fully composed/parsed URL for the anchor already.

What are the acceptance criteria?

Clicking on a heading copies the correct URL to your clipboard.

@MattIPv4 MattIPv4 added bug Something isn't working patch Change is SEMVER patch labels Apr 18, 2023
@MattIPv4 MattIPv4 merged commit ddeb4ff into master Apr 18, 2023
@MattIPv4 MattIPv4 deleted the MattIPv4/copy-link-bugfix branch April 18, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch Change is SEMVER patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants