Skip to content

Commit

Permalink
Merge pull request #823 from JBBianchi/fix-822-broken-example-readme
Browse files Browse the repository at this point in the history
Fixed examples hydration breaking samples in README
  • Loading branch information
ricardozanini authored Feb 21, 2024
2 parents 3b6f976 + cb83155 commit 9f79f8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .ci/examples-readme-hydration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const disclaimer = `<!--
console.error('Enable to parse JSON or convert it to YAML, output as it is.', ex);
}
}
fileContent = fileContent.trim() + '\n';
readMe = readMe.replace(include[0], fileContent);
};
await fs.promises.writeFile(readMeOutputPath, disclaimer + readMe, { encoding: 'utf8', flag: 'w' });
Expand Down

0 comments on commit 9f79f8f

Please sign in to comment.