Skip to content

Commit

Permalink
Fix code highlighting on search
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Dec 13, 2023
1 parent 8c2d871 commit afa4adf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/viewer_partial.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>

<script type="module">
import { createApp, ref, computed } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
import { createApp, ref, computed, nextTick } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'

const allIntrinsics = {% endraw %} {{ all_intrinsics() }} {% raw %};

Expand All @@ -63,6 +63,8 @@
result.push(val);
}
}

nextTick(hljs.highlightAll);
return result;
});

Expand Down
20 changes: 20 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afa4adf

Please sign in to comment.