From 6ffbbbb9f64fae71b3f13792e18a9c3beb7cf595 Mon Sep 17 00:00:00 2001 From: Szymon Halski Date: Fri, 21 Aug 2026 11:01:13 +0200 Subject: [PATCH 1/2] Escape the JSON-LD against early script termination --- packages/docs-gesture-handler/plugins/swm-geo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/docs-gesture-handler/plugins/swm-geo.js b/packages/docs-gesture-handler/plugins/swm-geo.js index 495adbd76b..8e8ab712c6 100644 --- a/packages/docs-gesture-handler/plugins/swm-geo.js +++ b/packages/docs-gesture-handler/plugins/swm-geo.js @@ -116,7 +116,9 @@ module.exports = function swmGeoPlugin(context) { { tagName: 'script', attributes: { type: 'application/ld+json' }, - innerHTML: JSON.stringify(buildStructuredData(context.siteConfig)), + innerHTML: JSON.stringify( + buildStructuredData(context.siteConfig), + ).replace(/ Date: Fri, 21 Aug 2026 16:17:47 +0200 Subject: [PATCH 2/2] Remove comma --- packages/docs-gesture-handler/plugins/swm-geo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs-gesture-handler/plugins/swm-geo.js b/packages/docs-gesture-handler/plugins/swm-geo.js index 8e8ab712c6..61e4295ecd 100644 --- a/packages/docs-gesture-handler/plugins/swm-geo.js +++ b/packages/docs-gesture-handler/plugins/swm-geo.js @@ -117,7 +117,7 @@ module.exports = function swmGeoPlugin(context) { tagName: 'script', attributes: { type: 'application/ld+json' }, innerHTML: JSON.stringify( - buildStructuredData(context.siteConfig), + buildStructuredData(context.siteConfig) ).replace(/