Skip to content

Commit 1aa1da4

Browse files
fix(etl): div selectors was not excluding handnote and facsimile-images as intended
1 parent 6800037 commit 1aa1da4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/etl/src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ async function transformToHtml(filePath) {
121121

122122
const $ = cheerio.load(result.principalResult);
123123

124-
// GN selector looks wrong, it should be 'body div:not(#facsimile-images):not(#handnote)'
125-
// confirmed by inclusion of those two divs in the .json output
126-
const divs = $("body > div:not(#facsimile-images #handnote)")
124+
const divs = $("body > div:not(#facsimile-images):not(#handnote)")
127125
.map((i, div) => ({
128126
id: $(div).attr("id"),
129127
cls: $(div).attr("class"),

0 commit comments

Comments
 (0)