We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0efefd commit 21f0de5Copy full SHA for 21f0de5
1 file changed
script/graphql/utils/prerender-objects.js
@@ -25,7 +25,7 @@ module.exports = async function prerenderObjects (schemaJsonPerVersion, version)
25
for (const object of schemaJsonPerVersion.objects) {
26
context.item = object
27
const objectHtml = await liquid.parseAndRender(objectIncludeFile, context)
28
- const $ = cheerio.load(objectHtml)
+ const $ = cheerio.load(objectHtml, { xmlMode: true })
29
rewriteLocalLinks($, version, currentLanguage)
30
const htmlWithVersionedLinks = $.html()
31
objectsArray.push(htmlWithVersionedLinks)
0 commit comments