blob: 814e436fe97610abf033f216aceb5594cdb8373c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<!-- import DarkReader -->
<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.125/darkreader.min.js"></script>
<!-- import hljs -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<!-- run main script -->
<script>
document.addEventListener("DOMContentLoaded", (event) => {
// apply syntax highlighting to all code blocks
document.querySelectorAll("pre code").forEach((block) => {
hljs.highlightElement(block);
});
// set fetch method for DarkReader to use the same origin policy
DarkReader.setFetchMethod(window.fetch);
// auto-enable dark mode if user has set it as their preference
DarkReader.auto();
});
</script>
<style>
/* wrap code */
.hljs {
max-width: 100%;
white-space: pre-wrap;
word-break: break-word;
}
</style>
|