Skip to content

Commit

Permalink
fix: search can not search the table header (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jul 1, 2020
1 parent 34d918f commit 3f03e78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/search/search.js
Expand Up @@ -56,6 +56,7 @@ function getAllPaths(router) {

function getTableData(token) {
if (!token.text && token.type === 'table') {
token.cells.unshift(token.header);
token.text = token.cells
.map(function(rows) {
return rows.join(' | ');
Expand Down

1 comment on commit 3f03e78

@vercel
Copy link

@vercel vercel bot commented on 3f03e78 Jul 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.