nolebase / integrations

✍️ A collection of diverse documentation engineering tools. Better reading experience, inline link preview, highlight targeted title, enhanced <mark> element, state-of-the-art SEO and <meta> generation, og image, thumbhash & blurhash images and more!
https://nolebase-integrations.ayaka.io
MIT License
152 stars 29 forks source link

feature request: scroll to hashtag (`#`) for `vitepress-plugin-inline-link-preview` #157

Open Ampernic opened 7 months ago

Ampernic commented 7 months ago

Now if use inline-link-preview with bi-directional-links it render page preview of page from beginning.

https://github.com/nolebase/integrations/assets/44705058/cb4f1b8c-6888-4808-90e4-f394e85bd282

nekomeowww commented 7 months ago

How about try to use vitepress-plugin-highlight-targeted-heading for now.

Try these demo links, it doesn't scroll to the targeted heading, but blinks:

Let me see how scrolling got implemented on the VitePress's side, might have some issues.

nekomeowww commented 6 months ago

This is quite hard to debug. I will move this to 2.1.0 milestone.