mnfst 0.5.58 → 0.5.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -226,6 +226,13 @@ function initializeCodePlugin() {
226
226
  }
227
227
 
228
228
  setupCodeGroup() {
229
+ // Idempotency: if a tab header is already present (from prerender output
230
+ // or a previous connection), skip rebuilding it. Otherwise the DOM ends
231
+ // up with a doubled tab row when the static page rehydrates.
232
+ if (this.querySelector(':scope > header[aria-label="Code examples"]')) {
233
+ return;
234
+ }
235
+
229
236
  // Find all x-code elements within this group
230
237
  const codeElements = this.querySelectorAll('x-code');
231
238