Skip to content

Commit 4744293

Browse files
committed
support highlight.js
1 parent 6b05e21 commit 4744293

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

exampleSite/layouts/partials/foot_custom.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22
<script async src="//cdn.bootcss.com/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
33

44
<script async src="//yihui.name/js/center-img.js"></script>
5+
6+
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
7+
<script src="//cdn.bootcss.com/highlight.js/9.12.0/languages/r.min.js"></script>
8+
9+
<script>
10+
hljs.configure({languages: []});
11+
hljs.initHighlightingOnLoad();
12+
</script>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<link href="//cdn.bootcss.com/highlight.js/9.12.0/styles/github.min.css" rel="stylesheet">

0 commit comments

Comments
 (0)