Skip to content

Commit a4dadee

Browse files
authored
Merge pull request #1426 from dtolnay/cheerio
Update cheerio to 1.0.0
2 parents 632d188 + d9caaa2 commit a4dadee

File tree

3 files changed

+228
-170
lines changed

3 files changed

+228
-170
lines changed

book/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ while (dirs.length) {
5151
}
5252

5353
const index = fs.readFileSync(path, 'utf8');
54-
const $ = cheerio.load(index, { decodeEntities: false });
54+
const $ = cheerio.load(index, {
55+
decodeEntities: false,
56+
xml: { xmlMode: false },
57+
});
5558

5659
$('head').append(opengraph);
5760
$('nav#sidebar ol.chapter').append(githublink);

0 commit comments

Comments
 (0)