Skip to content

Commit

Permalink
Fixes docs build process
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Mar 27, 2024
1 parent 8203feb commit 19f06db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/documentation/build/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ module.exports = async contents => {
return result;
}

const $ = cheerio.load(contents, { decodeEntities: false });
const $ = cheerio.load(contents, { decodeEntities: false }, false);

for (const transformer of transformers) {
transformer($);
}

let result = $.html();

// replace all the escaped partial tags with the actual partial tags
if (result.includes("{{> ")) {
result = result.replace(/{{> /g, "{{> ");
}

// remove the indent from the line which contains the body partial
// this prevents issues with code snippets
if (result.includes("{{> body}}")) {
Expand Down

0 comments on commit 19f06db

Please sign in to comment.