docsifyjs / docsifyjs/docsify

Highlight the word result that searched

未关闭
#2,450 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
31.5k
派生
5.8k
平均合并
9 天 8 小时
30 天内合并 PR
2

描述

## Feature request

#### Problem or desire

I searching for the "Beginilah" result

![Screenshot Capture - 2024-06-09 - 12-08-50](https://github.com/docsifyjs/docsify/assets/143163098/b0251ae2-47f2-4385-93e7-ef07e8c05d63)

When i click the result, it just go to the Heading of text, not highlight the word.

#### Proposal

Highlight the word that searched, so we know where it is

![Screenshot Capture - 2024-06-09 - 12-10-06](https://github.com/docsifyjs/docsify/assets/143163098/3820618a-b30d-4b1e-a0ff-dd6449e65369)

#### Implementation

Add new element for the highlited searched words like ``

贡献指南

打开贡献指南

调研方向

未指定文件、测试或入口点。首先在 Docsify 代码库中定位搜索结果导航,并将当前跳转到标题的行为与所请求的高亮搜索词行为进行比较。完成的标准是选择一个结果后,搜索的词会以可见方式高亮显示。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend, search
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。