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

Is there any way to only target headers and not content? #8

Closed
dead-claudia opened this issue Feb 15, 2019 · 3 comments
Closed

Is there any way to only target headers and not content? #8

dead-claudia opened this issue Feb 15, 2019 · 3 comments

Comments

@dead-claudia
Copy link

I couldn't tell you how many times I had to say "Click this page and scroll to X" because there was no way to select a header and get its click ID. Prior to Markdown and related tools, having IDs for headers was exceedingly rare, and it still is fairly uncommon on blog posts to convert headers into anchors.

It'd be nice to be able to search only by header, and most of the time that's all I would want to search.

@bokand
Copy link
Collaborator

bokand commented Feb 26, 2019

I think the answer here would be to add additional context text to help disambiguate the header, as stated in #4.

@bokand
Copy link
Collaborator

bokand commented May 28, 2019

The updated proposal and prototype now supports context snippets so you can disambiguate headers. e.g., Try Chrome Canary with chrome://flags#enable-text-fragment-anchor: https://github.com/bokand/ScrollToTextFragment#targetText=way.-,Highlight,-The

I think we can close this issue?

@bokand
Copy link
Collaborator

bokand commented Oct 9, 2019

I think this use case is addressed with the existing syntax. Feel free to elaborate if I missed something.

@bokand bokand closed this as completed Oct 9, 2019
nickburris pushed a commit that referenced this issue Oct 30, 2019
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

2 participants