diff --git a/.gitignore b/.gitignore index ffd0694e..dc871957 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,12 @@ public/Aryan Suri/a.txt /public/Henry Agnew/User Dashboard/usernames.json /public/Henry Agnew/User Dashboard/users.json /API/hypothesis/hypothesis.json + +# Agents +.agents/ +agents/ +.claude/ +claude/ +CLAUDE.md +.codegraph/ +.mcp.json diff --git a/API/bot.js b/API/bot.js index 7560d818..c0161303 100644 --- a/API/bot.js +++ b/API/bot.js @@ -717,7 +717,7 @@ async function convertContainers(input, content) { if (!content.includes('boxtitle') && !content.includes('note1')) return [false, 0]; - const $ = cheerio.load(content); + const $ = cheerio.load(content, null, false); let result = ''; let count = 0; @@ -807,7 +807,7 @@ async function editorPreprocess(botID, url, browser) { } async function addPageIdentifierClass(subdomain, path, content) { - const $ = cheerio.load(content); + const $ = cheerio.load(content, null, false); let result = ''; let current = await LibreTexts.getAPI(`https://${subdomain}.libretexts.org/${path}`, false, 'LibreBot');