Treat ```-blocks as gleam, as before
<script src="{{ unnest }}/js/highlightjs-erlang.min.js?v={{ gleam_version }}"></script>
<script src="{{ unnest }}/js/highlightjs-elixir.min.js?v={{ gleam_version }}"></script>
<script src="{{ unnest }}/js/highlightjs-javascript.min.js?v={{ gleam_version }}"></script>
- <script>hljs.highlightAll();</script>
+ <script>
+ document.querySelectorAll("pre code").forEach((elem) => {
+ if (elem.className === "") {
+ elem.classList.add("gleam");
+ }
+ });
+ hljs.highlightAll();
+ </script>
<script src="{{ unnest }}/js/lunr.min.js?v={{ gleam_version }}"></script>
<script src="{{ unnest }}/js/index.js?v={{ rendering_timestamp }}"></script>
