z3by / vuepress-plugin-flexsearch

Next-Generation full text search library for Vuepress
MIT License
41 stars 16 forks source link

Split highlighted words with flexsearch delimiter #59

Closed lukaw3d closed 2 years ago

lukaw3d commented 3 years ago

Flexsearch's split defaults to /[\W_]+/, not " ": https://github.com/nextapps-de/flexsearch#charset-options

Quick comparison of searching for code Before After After (without spaces)
before new default new both
z3by commented 2 years ago

Hey, @lukaw3d this branch is conflicted, could you please resolve conflicts.

lukaw3d commented 2 years ago

@z3by :+1: Rebased

lukaw3d commented 2 years ago

@z3by would you mind making a release with this?