mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-22 08:29:19 +02:00
support highlight.js
This commit is contained in:
parent
b76b60eb94
commit
97c1b05b69
|
@ -2,3 +2,11 @@
|
|||
<script src="//cdn.jsdelivr.net/combine/npm/katex/dist/katex.min.js,npm/katex/dist/contrib/auto-render.min.js,npm/@xiee/utils/js/render-katex.js" defer></script>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/npm/@xiee/utils/js/center-img.min.js" defer></script>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/r.min.js"></script>
|
||||
|
||||
<script>
|
||||
hljs.configure({languages: []});
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/github.min.css" rel="stylesheet">
|
Loading…
Reference in New Issue