File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change <
8000
div class="d-flex flex-row">@@ -56,17 +56,19 @@ configuring syntax highlighting of code blocks:
56
56
=== "docs/javascripts/config.js"
57
57
58
58
``` js
59
- hljs.initHighlighting()
59
+ document$.subscribe(() => {
60
+ hljs.highlightAll()
61
+ })
60
62
```
61
63
62
64
=== "mkdocs.yml"
63
65
64
66
``` yaml
65
67
extra_javascript:
66
- - https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1 /highlight.min.js
68
+ - https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2 /highlight.min.js
67
69
- javascripts/config.js
68
70
extra_css:
69
- - https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1 /styles/default.min.css
71
+ - https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2 /styles/default.min.css
70
72
```
71
73
72
74
Note that Highlight.js has no affiliation with the Highlight extension.
You can’t perform that action at this time.
0 commit comments