Skip to content

Commit 03e1505

Browse files
committed
docs: fix for noscript parser bug
1 parent 312d5be commit 03e1505

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rocket.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ export default {
4141
}),
4242
],
4343

44+
eleventy(eleventyConfig) {
45+
eleventyConfig.addTransform('fix-noscript', content =>
46+
content
47+
.replace(/&#x26;#x3C;(link|style)/g, '<$1')
48+
.replace(/&#x26;(link|style)/g, '<$1')
49+
.replace(/&#x3C;(link|style)/g, '<$1'),
50+
);
51+
},
52+
4453
// serviceWorkerName: 'sw.js',
4554
// pathPrefix: '/_site/',
4655

0 commit comments

Comments
 (0)