Skip to content

Commit 3f03e78

Browse files
authored
fix: search can not search the table header (#1256)
1 parent 34d918f commit 3f03e78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/plugins/search/search.js

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ function getAllPaths(router) {
5656

5757
function getTableData(token) {
5858
if (!token.text && token.type === 'table') {
59+
token.cells.unshift(token.header);
5960
token.text = token.cells
6061
.map(function(rows) {
6162
return rows.join(' | ');

0 commit comments

Comments
 (0)