Skip to content

Commit aa293cf

Browse files
committed
Reformat
1 parent 0a20561 commit aa293cf

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

javascript/generateSearchData.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
recursiveProcessPureText,
1414
recursivelyProcessTextSnippetJson
1515
} from "./processingFunctions/index.js";
16+
import type { WriteBuffer } from "./types.js";
1617

1718
let paragraph_count = 0;
1819
let heading_count = 0;
@@ -335,12 +336,12 @@ const processTagWithChildren = (node, obj) => {
335336
};
336337

337338
const processLatex = (node, obj, inline) => {
338-
const writeTo = [];
339+
const writeTo: WriteBuffer = [];
339340

340341
if (inline) {
341342
recursiveProcessPureText(node.firstChild, writeTo, {
342343
removeNewline: "all"
343-
});
344+
} as any);
344345
} else {
345346
recursiveProcessPureText(node.firstChild, writeTo);
346347
}
@@ -372,23 +373,14 @@ const processTextFunctions = {
372373

373374
// Tags with children and no body
374375
B: processTagWithChildren,
375-
376376
EM: processTagWithChildren,
377-
378377
LI: processTagWithChildren,
379-
380378
TT: processTagWithChildren,
381-
382379
TABLE: processTagWithChildren,
383-
384380
TR: processTagWithChildren,
385-
386381
TD: processTagWithChildren,
387-
388382
REFERENCE: processTagWithChildren,
389-
390383
OL: processTagWithChildren,
391-
392384
UL: processTagWithChildren,
393385

394386
br: (node, obj) => {

0 commit comments

Comments
 (0)