fix(search): clean markdown elements in search contents by Koooooo-7 · Pull Request #2457 · docsifyjs/docsify
There seems to be a problem with diacritics.
I checked the previews behavior, it is different from v4 result since last year. Which has a pure wrong result highlight for cafe.
Current behavior in this PR more looks like a "patch" to correct search contents, but we still need figure it out when and why the search content changed.
Update:
There is a potential issue for the postContent and handlePostContent, the handlePostContent may have large size than the postContent after being formatted (e.g " to ", size up to 5 times), which makes the substring in wrong place, will get a fix on it.
Because we have the content format function changes, the behavior is still changed than v4+ .