Skip to content

Commit b5a8a78

Browse files
committedMar 25, 2021
Switched highlighting from the <pre> elements to the <code> elements
1 parent 1ef41ac commit b5a8a78

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
 

‎_code-blocks/webflow/embed-code.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_code-blocks/webflow/embed-code.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ document.addEventListener('DOMContentLoaded', async () => {
3131
preElement.appendChild(copyButton);
3232

3333
// Highlight the element
34-
highlightJS.highlightBlock(preElement);
34+
highlightJS.highlightBlock(codeElement);
3535

3636
// Append it to the embed
3737
embedElement.appendChild(preElement);

‎_code-blocks/zendesk/embed-code.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_code-blocks/zendesk/embed-code.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ document.addEventListener('DOMContentLoaded', async () => {
3030
preElement.appendChild(copyButton);
3131

3232
// Highlight the element
33-
highlightJS.highlightBlock(preElement);
33+
highlightJS.highlightBlock(codeElement);
3434
}
3535

3636
initCopyClipboard();

0 commit comments

Comments
 (0)
Please sign in to comment.