Skip to content

Commit

Permalink
Merge pull request #1426 from dtolnay/cheerio
Browse files Browse the repository at this point in the history
Update cheerio to 1.0.0
  • Loading branch information
dtolnay authored Jan 25, 2025
2 parents 632d188 + d9caaa2 commit a4dadee
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 170 deletions.
5 changes: 4 additions & 1 deletion book/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ while (dirs.length) {
}

const index = fs.readFileSync(path, 'utf8');
const $ = cheerio.load(index, { decodeEntities: false });
const $ = cheerio.load(index, {
decodeEntities: false,
xml: { xmlMode: false },
});

$('head').append(opengraph);
$('nav#sidebar ol.chapter').append(githublink);
Expand Down
Loading

0 comments on commit a4dadee

Please sign in to comment.