Skip to content

Commit

Permalink
fix: search can not search the table header
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jun 30, 2020
1 parent 34d918f commit e91ab78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/search/search.js
Original file line number Diff line number Diff line change
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

0 comments on commit e91ab78

Please sign in to comment.