emersonbottero / vitepress-plugin-search

Provide local search to your documentation site.
MIT License
239 stars 30 forks source link

Incorrect anchor links #10

Closed Huskydog9988 closed 2 years ago

Huskydog9988 commented 2 years ago

So after selecting a search item, it doesn't give the proper anchor for an item like [thing] text or one 1.2. It doesn't use the ids set by vitepress, and what I assume is happening is its incorrectly assuming them.The proper anchor in vitepress would be thing-text and one-1-2 respectivly, but the search returns [thing]text and it won't even return the item for one 1.2. (There its a h3 and its returning the h2 above it.)

emersonbottero commented 2 years ago

you are right and should be easy to fix.. (I didn't create an example with spaces in the anchors.. )