Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make search stop showing markdown and/or HTML syntax in search results #1369

Open
NoahMaizels opened this issue Sep 9, 2020 · 4 comments
Open
Milestone

Comments

@NoahMaizels
Copy link

Feature request

Make search stop showing markdown and/or HTML syntax in search results

What problem does this feature solve?

Showing markdown and html syntax in search results is not the expected behavior for full text search. It should return rendered text with no syntax.

What does the proposed API look like?

How should this be implemented in your opinion?

Are you willing to work on this yourself?

@Koooooo-7
Copy link
Member

We notice this problem also but there havnt had an ideal way to solve it yet. we may plan to use some search plugins to make it.

@ngthtung
Copy link

ngthtung commented Nov 4, 2020

@noahniuwa I found out a solution, use lurn https://github.com/kiwicom/docsify-lunr-search maybe fix this problem.
However, Lunr not really better current search in docsify but it can fix this problem.

@paulhibbitts
Copy link
Collaborator

paulhibbitts commented Jun 30, 2023

Anyone have leads on this issue? I am experimenting with supporting Search with Docsify-This.net and seeing this issue too - for example, search for "Welcome". https://paulhibbitts.github.io/test-docsify-this/?basePath=https://raw.githubusercontent.com/hibbitts-design/docsify-this-multiple-page-course-site/main&homepage=home.md&sidebar=true&loadSidebar=_sidebar.md&loadNavbar=_navbar.md&search=true

UPDATE: I customized the Search.js code to not include certain HTML items https://github.com/paulhibbitts/test-docsify-this/blob/main/docs/assets/vendor/docsify/plugins/custom/search.js#L228-L234

@jhildenbiddle
Copy link
Member

These libraries look like promising options for removing markdown/HTML markup from our search results:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants