Skip to content

Commit d9caaa2

Browse files
committed
Update cheerio to 1.0.0
1 parent 632d188 commit d9caaa2

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)