]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove remaining Prism usage (#42193)
authorJulien Déramond <juderamond@gmail.com>
Tue, 17 Mar 2026 19:18:51 +0000 (20:18 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2026 19:18:51 +0000 (20:18 +0100)
package-lock.json
package.json
site/src/components/shortcodes/ButtonPlayground.astro
site/src/components/shortcodes/DropdownPlacementPlayground.astro
site/src/components/shortcodes/NavbarPlacementPlayground.astro
site/src/components/shortcodes/StepperPlayground.astro

index 635bed353706b1bcee066b5cd40b4bef9712c8f9..562d2c10ba6b52a70fa925c5354b292f7c78f9c0 100644 (file)
@@ -22,7 +22,6 @@
         "@astrojs/check": "^0.9.6",
         "@astrojs/markdown-remark": "^6.3.10",
         "@astrojs/mdx": "^4.3.13",
-        "@astrojs/prism": "^3.3.0",
         "@astrojs/sitemap": "^3.6.0",
         "@babel/cli": "^7.28.3",
         "@babel/core": "^7.28.5",
index adbd6fb62002e078f2a4c5369afcfaa875a7d438..f168b171c106bb3e9c39c61c871484080315bf34 100644 (file)
     "@astrojs/check": "^0.9.6",
     "@astrojs/markdown-remark": "^6.3.10",
     "@astrojs/mdx": "^4.3.13",
-    "@astrojs/prism": "^3.3.0",
     "@astrojs/sitemap": "^3.6.0",
     "@babel/cli": "^7.28.3",
     "@babel/core": "^7.28.5",
index e46b5585b3ef248be41f447a32bd4038f2baae9b..103dda9de3997eb0bad6211fc6b1d4c37edf42a0 100644 (file)
@@ -206,12 +206,6 @@ const rounded = ['default', 'pill', 'square']
     // Update the code content
     codeSnippet.className = 'language-html'
     codeSnippet.textContent = htmlCode
-
-    // Trigger Prism highlighting if available
-    // Prism from @astrojs/prism is server-side, but we can try to use Prism.js if loaded
-    if (typeof window !== 'undefined' && (window as any).Prism) {
-      (window as any).Prism.highlightElement(codeSnippet)
-    }
   }
 
   function updateButtons() {
index 8971fa4da3e87022abcd44672d7fc999ed831fbe..f8ef8ec39229c995210f13ec95f96595c0d54175 100644 (file)
@@ -193,10 +193,6 @@ const logicalPlacements = [
 
     codeSnippet.className = 'language-html'
     codeSnippet.textContent = htmlCode
-
-    if (typeof window !== 'undefined' && (window as any).Prism) {
-      (window as any).Prism.highlightElement(codeSnippet)
-    }
   }
 
   // Initialize placement dropdown
index f374f301fe24b96f367d65ab4f9a6dce010aa36e..8c40ced3f6fa7e5fff413a623e8de31257446783 100644 (file)
@@ -122,10 +122,6 @@ const placements = [
 
     codeSnippet.className = 'language-html'
     codeSnippet.textContent = htmlCode
-
-    if (typeof window !== 'undefined' && (window as any).Prism) {
-      (window as any).Prism.highlightElement(codeSnippet)
-    }
   }
 
   // Initialize dropdown
index cdf4f5ffe9e4679300a4300c0031df813d419e8a..e30c7cf1a84c056879c9ad5f13279fe710e91424 100644 (file)
@@ -254,10 +254,6 @@ const stepCounts = [3, 4, 5, 6]
     const htmlCode = generateHTML()
     codeSnippet.className = 'language-html'
     codeSnippet.textContent = htmlCode
-
-    if (typeof window !== 'undefined' && (window as any).Prism) {
-      (window as any).Prism.highlightElement(codeSnippet)
-    }
   }
 
   function updateActiveDropdown() {