leo-buneev / vuepress-plugin-fulltext-search

Adds full-text search capabilities to your vuepress site with a help of flexsearch library.
MIT License
93 stars 23 forks source link

Exclude raw markdown and table-headers in search result #9

Closed renegadevi closed 3 years ago

renegadevi commented 4 years ago

When searching tables, it includes Table headers and raw markdown syntax in the result. See below.

This is example table I have in markdown

table-example

Table source code

## Backup / Cloning
| Name ⇵ | Description ⇵ | Get it ⇵ | ⇵ | ⇵ |
|:-------|:--------------|:--------:|:-:|:-:|
|[Carbon Copy Cloner](https://bombich.com/)| Superb bootable backup solution for the Mac|[Website](https://bombich.com/)|![Paid](symbols/paid.svg "Paid")|![Closed-Source](symbols/closed.svg "Closed-Source")|
|[SuperDuper](https://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html)| Advanced, yet easy to use disk copying program for macOS.|[Website](https://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html)|![Paid](symbols/paid.svg "Paid")|![Closed-Source](symbols/closed.svg "Closed-Source")|

Expected result (Photoshopped)

First with either just first table data with has the word, or as the second result, the row of the result.

carbon-search-expected-result

Actual result

carbon-search
ayechief commented 4 years ago

Yeah

leo-buneev commented 3 years ago

Resolved in 2.0.4. Results won't contain raw markdown anymore. However, decided to leave table headers - could be useful to index them, and they don't look as bad in search results anymore.