Skip to content

Commit

Permalink
Merge pull request #3412 from w3c/Fix-syntax-highlighting
Browse files Browse the repository at this point in the history
Fix #2914
  • Loading branch information
alastc authored Sep 27, 2023
2 parents a672e57 + 4d65b1d commit 74d3e0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions script/highlight.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,3 @@
illegal:null,className:null,contains:null,skip:!0
}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,
skip:!0})]}]})})());

document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('pre').forEach((el) => {
hljs.highlightElement(el);
});
});
var translationStrings = {}; /* fix WAI JS */
7 changes: 7 additions & 0 deletions xslt/base.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@
<xsl:template name="waiscript">
<link rel="stylesheet" href="../a11y-light.css" />
<script src="../highlight.min.js" />
<script>
hljs.configure({
cssSelector: 'pre'
});
hljs.highlightAll();
var translationStrings = {}; /* fix WAI JS */
</script>
<script src="https://www.w3.org/WAI/assets/scripts/main.js"></script>
<!-- Matomo -->
<script>
Expand Down

0 comments on commit 74d3e0a

Please sign in to comment.