| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a07d844 commit 590ace4
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -227,7 +227,8 @@ export function preprocessElements({ filename }) { | |||
| 227 | 227 | nextNode.lang !== node.lang) { | |
| 228 | 228 | // Saving the highlight code as value to be added in the next node. | |
| 229 | 229 | node.value = highlighted; | |
| 230 | - } else if (isJSFlavorSnippet(previousNode)) { | ||
| 230 | + } else if (isJSFlavorSnippet(previousNode) && | ||
| 231 | + previousNode.lang !== node.lang) { | ||
| 231 | 232 | node.value = '<pre>' + | |
| 232 | 233 | '<input class="js-flavor-selector" type="checkbox"' + | |
| 233 | 234 | // If CJS comes in second, ESM should display by default. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments