Skip to content

Commit 5180458

Browse files
committed
FIx broken table search due marked lexer changes
1 parent 6ccd218 commit 5180458

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/plugins/search/search.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ function getAllPaths(router) {
5757

5858
function getTableData(token) {
5959
if (!token.text && token.type === 'table') {
60-
token.cells.unshift(token.header);
61-
token.text = token.cells
62-
.map(function (rows) {
63-
return rows.join(' | ');
64-
})
60+
token.rows.unshift(token.header);
61+
token.text = token.rows
62+
.map(columns => columns.map(r => r.text).join(' | '))
6563
.join(' |\n ');
6664
}
6765
return token.text;

0 commit comments

Comments
 (0)