Keeping anchors with ID hrefs in the same tab
See original GitHub issueWhile the linksInNewTab
option is awesome, I’d like it to only affect non-id hrefs. Opening a new tab with the same page but in a different scroll position doesn’t make for a great experience imho. I created a PR to fix this by checking the leading character of a link’s href attribute. Please let me know if this is something you are into @egoist or if there are changes you’d like me to make 👍
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Link to anchor tag contained in a tab from another page & tab
I just found out how I can link to a specific peace of anchor tag using ID assignment. And now I also need...
Read more >Anchor link inside same tab - JavaScript - SitePoint Forums
I re-wrote the script to handle going to specific links on any page that has the tabs by checking the fragment identifier if...
Read more >HTML Anchors: Here's How To Create Links For Fast ...
Learn how to create HTML hyperlinks. This guide covers the anchor element and all of it's attributes.
Read more ><a>: The Anchor element - HTML: HyperText Markup Language
The HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the ...
Read more >Linking to information in tabbed content - Canvas Community
When you link to the content page with your tabs, you will need to add the name of the anchor point for the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sure 👍🏻please
@egoist I made the change and bumped the version to
0.6.1
, so I can fork docup and create a PR with an updated version of marked3. Let me know if you want any changes 👍EDIT: Also here’s the docup PR. We’ll probably want to update the
marked3
version inpackage.json
after this PR is merged and a new version is published.